TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.

Slides:



Advertisements
Similar presentations
Pixels and Digital Images Yrd. Doc. Dr. Ahmet Sayar Kocaeli Universitesi Bilgisayar Muhendisligi Ileri Bilgisayar Grafikleri.
Advertisements

TOPIC 5 INTRODUCTION TO PICTURES 1 1 Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B.
Photography and CS Philip Chan. Film vs Digital Camera What is the difference?
DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.
Color COM 366 Web Design & Production. RGB color Amount of light in each channel Closer to 255, whiter color gets Every color has value for red,
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
Capturing and optimising digital images for research Gilles Couzin.
Bits are Not just for Numbers or Characters Computers store characters as bits or binary digits. Characters from the English-language keyboard can be represented.
Bits are Not just for Numbers Computers store characters as bits or binary digits. Characters from the English-language keyboard are represented in ASCII.
Introduction to Multimedia Student Multimedia Design Center 06/06/06.
Digital Audio, Image and Video Hao Jiang Computer Science Department Sept. 6, 2007.
March 2006Taner Erig - EMU2-1 Metamorphosis of Information How is information represented and how do computers store information?
1 Perception. 2 “The consciousness or awareness of objects or other data through the medium of the senses.”
I Power Multimedia Technology Video Data. Video data Video is a sequence of individual pictures or frames, taken one after another. These are played back.
Representing Images. Goals for Image Representation digitization & resolution digitization & resolution representing color representing color color depth.
Digital Media Dr. Jim Rowan ITEC 2110 Color. COLOR Is a mess It’s a subjective sensation PRODUCED in the brain Color differs for light and paint/ink Printing.
Digital Media Lecture 6: Color Part 1 Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Visual Representation of Information
CS 1308 Computer Literacy and the Internet. Creating Digital Pictures  A traditional photograph is an analog representation of an image.  Digitizing.
Chpater 3 Resolution, File Formats and Storage. Introduction There are two factors that determine the quality of the picture you take; The resolution.
Fundamentals of Photoshop
Technology and digital images. Objectives Describe how the characteristics and behaviors of white light allow us to see colored objects. Describe the.
Welcome Topic: Pixels A.M.Meshkatur Rahman Class: vii Roll: 07.
Georgia Institute of Technology Introduction to Media Computation Barb Ericson Georgia Institute of Technology May 2006.
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
How A Camera Works Image Sensor Shutter Mirror Lens.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
 Refers to sampling the gray/color level in the picture at MXN (M number of rows and N number of columns )array of points.  Once points are sampled,
COSC 1P02 Intro. to Computer Science 6.1 Cosc 1P02 Week 6 Lecture slides "To succeed, jump as quickly at opportunities as you do at conclusions." --Benjamin.
Photoshop Software Rasterized, file formats, and printing choices.
Foundations of Web Design I Photoshop CS5 Michael Daniel
Data Representation CS280 – 09/13/05. Binary (from a Hacker’s dictionary) A base-2 numbering system with only two digits, 0 and 1, which is perfectly.
Bit-Mapped Graphic Data: Input (Capture) Hardware Multimedia – Section 2.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Digital Media Dr. Jim Rowan ITEC 2110 Color. Question! Inside Photoshop and Gimp there are image filters that, among other things, allow you to blur the.
Digital Cameras And Digital Information. How a Camera works Light passes through the lens Shutter opens for an instant Film is exposed to light Film is.
Communicating Quantitative Information Is a picture worth 1000 words? Digital images. Number bases Standards, Compression Will [your] images last? Homework:
Agenda Last class: Memory, Digitizing Numbers Today: Digitizing: Text
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
CSC1401. Learning Goals Understand at a conceptual level What is media computation? How does color vision work? How can you make colors with red, green,
TOPIC 5 INTRODUCTION TO PICTURES 1 1 Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B.
How digital cameras work The Exposure The big difference between traditional film cameras and digital cameras is how they capture the image. Instead of.
Digital Imaging Fundamentals Ms. Hema C.R. School of Mechatronic Engineering.
An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen.
CSCI-100 Introduction to Computing Hardware Part II.
The Digital Revolution Changing information. What is Digital?  Discrete values used for  Input  Processing  Transmission  Storage  Display  Derived.
 By Bob “The Bird” Fiske & Anita “The Snail” Cost.
POWERPOINT PLUS 11/17/07 Class Notes. WHAT IS A PIXEL A pixel is a number that represents the intensity of light at a square spot in the picture. Pixels.
Digital Images and Digital Cameras take notes in your journal.
Vocabulary Worksheet Answers
Georgia Institute of Technology Workshop for Programming And Systems Management Teachers Chapter 3 Introduction to Media Computation, Java, and DrJava.
HOW SCANNERS WORK A scanner is a device that uses a light source to electronically convert an image into binary data (0s and 1s). This binary data can.
Image Editing Vocabulary Words Pioneer Library System Norman Public Library Nancy Rimassa, Trainer Thanks to Wikipedia ( help.
Scanner Scanner Introduction: Scanner is an input device. It reads the graphical images or line art or text from the source and converts.
Information in Computers. Remember Computers Execute algorithms Need to be told what to do And to whom to do it.
 Many people like the flexibility of digital images. For example:  They can be shared by attaching to /uploading to Internet  Sent via mobiles.
DIGITAL MEDIA FOUNDATIONS
Unit 1 The History of Photography & The Camera
Sampling, Quantization, Color Models & Indexed Color
How to Convert Pictures into Numbers
Introduction to Media Computation
Chapter I Digital Imaging Fundamentals
LET’S LEARN ABOUT GRAPHICS!
Representing Images 2.6 – Data Representation.
Introduction to Media Computation
Nuts and Bolts of Digital Imaging
Multimedia System Image
Basic Concepts of Digital Imaging
Visuals are analog signals...
Presentation transcript:

TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson, and instructor materials prepared by B. Ericson.

Computing with media 2  Media computation is the processing of some collection of  Picture elements  Sound fragments  Movie frames  Text files  Web (HTML) pages

Digital media 3  Digital data refers to the encoding of information in bits (0’s and 1’s)  Digital media are electronic media that record a numeric encoding (as opposed to recording continuous (analog) signals)  Example: a digital camera captures and stores photos as digital data on a memory card rather than on film  Example: CDs and DVDs sample sound waves and record numbers that represent the sound at the time of that sample

Human vision 4  Our eyes contain  Rods that allow us to see black, white, and shades of gray  Cones that allow us to see in color Cones are sensitive to red, green, and blue light All other colors are combinations of these  Our eyes and brain work together to make sense of what we see

The RGB model 5  On a computer, we can produce white light as a combination of the full intensities of red, green, and blue combined  Black is the absence of all light  No red, green or blue light  All other colors are combinations  of red, green, and blue  of different intensities

In Dr Java 6  In DrJava’s Interactions pane type ColorChooser.pickAColor();  Click on the RGB tab and move the sliders to change the intensity of red, green, and blue  Note that each intensity is represented by a number between 0 and 255  Make white, black, red, blue, green, yellow, violet, and orange

Digital cameras 7  There are red, green, and blue filters that capture the amount of each color at each of many positions in a grid  These positions are called picture elements or pixels  A grid of 640 x 480 pixels is low resolution  A grid of 1600 x 1200 is high resolution  The more pixels, the better the picture (in theory); it can be enlarged without it looking grainy

Computer displays 8  A display has pixels (picture elements)  Each pixel has a red, green, and blue component  Combinations of red, green, and blue of different intensities give the resulting color  Black is 0 red, 0 green and 0 blue  White is 255 red, 255 green, and 255 blue

Pictures are made up of pixels 9  Digital cameras record light at pixels  Monitors display pictures using pixels  Our limited vision acuity helps us to see the discrete pixels as a smooth picture  If we blow up the picture, however, we can see the pixels

Storing pictures 10  The intensity of the red, green, and blue colors at each pixel is stored as a set of three numbers, typically  1 byte (8 bits) for red  1 byte for green  1 byte for blue  What numbers can be stored in 1 byte?  8 bits can hold 256 bit patterns  These can represent the numbers 0 to 255

From black to white 11  Black is stored as 0, 0, 0  White is stored as 255, 255, 255  What about red?  Pure red is 255, 0, 0  But 100,0,0 is also red (a darker red)  The gray at the right is stored as 200, 200, 200  How would a darker gray be stored?

Storing digital pictures 12  To store a 640 x 480 picture, we need nearly 1 million bytes!  To store an image from a 1 megapixel (million pixel) camera, we need 3 million bytes!  Most commonly stored in.jpg (JPEG) files  A lossy compression format lossy means not all data is stored (but what is lost isn’t that important) compression makes the images use less space  Other formats for storing digital pictures are GIF and BMP

Digital pictures in Java 13  Java supports the use of digital pictures  The textbook provides a Picture class  To use pictures, we create picture objects (objects of the Picture class)  The Picture class contains methods we can use to show and manipulate our pictures

Creating Picture objects 14  We can create a picture object, for example: Picture picture1 = new Picture(); System.out.println(picture1);  This creates a picture object, and prints information about it, but doesn’t actually show any picture yet  To show the picture, do the following: picture1.show();

Better picture objects 15  We pick a file name and save a reference to it in a variable called fileName (a file name is a string): String fileName = FileChooser.pickAFile();  Next, we create a Picture object from the file, and save a reference to it in a variable called pictureObj: Picture pictureObj = new Picture(fileName);  Now we call the show() method on the picture object: pictureObj.show();

Result 16