DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras Entirely chemical and...

17
DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14

Transcript of DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras Entirely chemical and...

Page 1: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

DIGITAL IMAGE PROCESSING

CMSC 150: Lecture 14

Page 2: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Conventional Cameras

Entirely chemical and mechanical processes

Film: records a chemical record of light pattern Light-sensitive grains in chemical

suspension on plastic Upon light exposure, grains undergo

reaction

Development: expose film to other chemicals Chemicals dye the layers of red, green,

blue Overlay to get full-color negative

Page 3: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Conventional Cameras

Page 4: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Digital Cameras

Sensor converts light to electrical charges 2D array of many tiny cells Light hits, converted into electrons Charge is converted into binary form

CCD: Charge Coupled Device

Page 5: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Analog to Digital Conversion: Sampling

Page 6: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Analog to Digital Conversion: Sampling

Page 7: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Analog to Digital Conversion: Sampling

Page 8: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Analog to Digital Conversion: Sampling

Page 9: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Analog to Digital Conversion: Sampling

Page 10: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Digital Image

Sensor: 2D array of values Image: "value" stored for cell in the

sensor Pixel: picture element One pixel per sensor cell

Page 11: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Capturing Color

Color filter placed over sensor Color at each cell determined as

"average of neighbor cells" (How Stuff Works animation)

Page 12: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Grayscale vs. Color

Grayscale: pixel corresponds to shade of gray Highest value: white Lowest value: black

Page 13: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Grayscale Images: Example

PGM: Portable Graymap Use 8-bits per pixel

256 total graylevels, 0-255 Each pixel represented by an integer

0: black 255: white

Let's play around with a few, using IrfanView

Page 14: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Grayscale vs. Color

Color: pixel corresponds to three color intensities Red, Green, Blue

In general, color image at least 3X footprint of grayscale

Page 15: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

RGB: Additive Color Model

Start from no color present (black background)

Add (emit) amounts of each primary

Full intensity of each R,G,B: white Full intensity of R,G: yellow

Page 16: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Resolution

Image quality vs. number of pixels Each image below stretched to 200x200

pixels Fewer pixels less information stored

25x25 original625 pixels

50x50 original2500 pixels

100x100 original10000 pixels

Page 17: DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.

Image Quality Vs. Color Levels

Clockwise on right: 2 levels per R,G,B 4 levels per R,G,B 10 levels per R,G,B 40 levels per R,G,B

More bits per pixel more colors larger footprint better quality