Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Computer Science
1
2/22/13
A picture is worth…
Computer Science
… a thousand words?
Analog
A continuous representation, analogous to the
actual information it represents.
Digital
A discrete representation, breaking the
information up into finite elements.
2
2/22/13
Analog Information
Computer Science
Example:
Analog Thermometer
Digital Information
Computer Science
Example:
Digital Thermometer
3
2/22/13
Digitizing
Creating a discrete representation of analog data,
suitable for storage and manipulation by a digital
computer.
Digitizing involves sampling and quantizing.
4
2/22/13
36 squares
144 squares
5
2/22/13
Sampling:
Taking measurements
(of color) at discrete
locations within the
image.
Sampling:
Taking measurements (of
color) at discrete locations
within the image.
6
2/22/13
Sampling:
Measure the color for
each pixel, and record
that color.
Sampling:
Measure the color for
each pixel, and record
that color.
7
2/22/13
iPhone 5 camera:
3264 x 2448 ~ 8 megapixels
Pixelation
Computer Science
8
2/22/13
Measuring Colors
Computer Science
9
2/22/13
+ + =
Quantization of colors
Computer Science
10
2/22/13
0% 100%
11
2/22/13
Computer Science
12
2/22/13
13
2/22/13
Raster/Bitmapped Graphics
Computer Science
A dog in hexadecimal.
Computer Science
14
2/22/13
Computer Science
15
2/22/13
Student To Dos
Computer Science
Readings:
Wong ch 1 pp 13-19, ch 2, pp 26-44 (today)
Wong ch 3, pp 66-86 (Friday)
Red-Blue combinations
Computer Science
16
2/22/13
Consider this
drawing.
17
2/22/13
To sample it,
we apply a grid
system.
Each cell is a
“pixel”.
A pixel is either
it’s colored in
or not (“on” or
“off”)
To collect
more detail,
sample the
picture more
frequently
(more pixels
per unit of
space).
18