02 - Lecture - Chapter 2 - Digital Image Fundamentals
02 - Lecture - Chapter 2 - Digital Image Fundamentals
Fundamentals
Contact: [email protected]
Google Class code: 6znzyyh
Image Representation
Chapter 2 from R.C. Gonzalez and R.E. Woods, Digital Image Processing
(3rd Edition), Prentice Hall, 2008 [ Section 2.3, 2.4 ]
Image Formation
Digital Camera
Film
The Eye
IMAGE SENSING AND ACQUISITION
Image Acquisition
1. Illumination source:
– Can be light energy or
– EM spectrum
– Even less tradition sources like
• Sound, heat
2. Scene:
– Any object: visible or hidden
– Source itself
3. Sensor:
– Should be capable of sensing the energy
Light And The Electromagnetic Spectrum
Reflection
λ
Transparency
Refraction
?
Fluorescence
Subsurface scattering
Phosphorescence
Chapter 2 of Szeliski
Interreflection
A photon’ s life choices
• Absorption
• Diffusion
light source
• Reflection
• Transparency
λ
• Refraction
• Fluorescence
• Subsurface scattering
• Phosphorescence
• Interreflection
A photon’ s life choices
• Absorption
• Diffuse Reflection
light source
• Reflection
• Transparency
λ
• Refraction
• Fluorescence
• Subsurface scattering
• Phosphorescence
• Interreflection
A photon’ s life choices
• Absorption
• Diffusion
light source
• Specular Reflection
• Transparency
λ
• Refraction
• Fluorescence
• Subsurface scattering
• Phosphorescence
• Interreflection
A photon’ s life choices
• Absorption
• Diffusion
light source
• Reflection
• Transparency
λ
• Refraction
• Fluorescence
• Subsurface scattering
• Phosphorescence
• Interreflection
A photon’ s life choices
• Absorption
• Diffusion
light source
• Reflection
• Transparency
λ
• Refraction
• Fluorescence
• Subsurface scattering
• Phosphorescence
• Interreflection
A photon’ s life choices
• Absorption
• Diffusion
light source
• Reflection
• Transparency
λ1
• Refraction
• Fluorescence
λ2
• Subsurface scattering
• Phosphorescence
• Interreflection
A photon’ s life choices
• Absorption
• Diffusion
light source
• Reflection
• Transparency
λ
• Refraction
• Fluorescence
• Subsurface scattering
• Phosphorescence
• Interreflection
A photon’ s life choices
• Absorption
• Diffusion
light source
• Reflection
• Transparency
t=1
• Refraction
• Fluorescence
• Subsurface scattering t=n
• Phosphorescence
• Interreflection
A photon’ s life choices
• Absorption
• Diffusion
light source
• Reflection
• Transparency
λ
• Refraction
• Fluorescence
• Subsurface scattering
• Phosphorescence
• Interreflection
(Specular Interreflection)
Image Sensors
Incoming energy lands on a sensor material responsive to that type
of energy and this generates a voltage
Collections of sensors are arranged to capture images
Line sensor
Transforming
Analog image Digital image
Process
Two steps:
– Sampling and
– Quantization
Image Sampling And Quantisation
Sampling:
Digitizing coordinates
A process which converts the continuous analog space into a
discrete space
Quantization:
Digitizing amplitudes (gray scale values)
A process of converting a continuous analogue signal into a
digital representation of that signal
Image Sampling
1-Dimensional Sampling
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
A 7 7 7 1 2 3 4 4 5 5 5 5 5 4 3 3 2 1 0 0 7 7 7B
Digitization
Digital Image
Matrix Representation
Representation of Digital Image
Representation of Digital Image
Representation of Digital Image
Formally,
• Sampling:
– Dividing (x, y) plane into grid with coordinate (zi, zj),
where,
zi , z j Z
• Quantization:
– Assign gray level value from Z to f(zi, zj)
Spatial Resolution
Spatial resolution: M x N
Number of Rows (M) and Columns (N) can be any integer
Bit size of an image: b M N k
For Square image, bN k 2
An image that is 2048 pixels in width and 1536 pixels in height has a
total of 2048×1536 = 3,145,728 pixels or 3.1 megapixels.
Here, spatial resolution is 3.1-megapixel.
One could refer to it as 2048 by 1536 or a 3.1-megapixel image.
Intensity (Gray) Level Resolution
Number of Intensity
Number of Bits Examples
Levels
1 2 0, 1
2 4 00, 01, 10, 11
4 16 0000, 0101, 1111
8 256 00110011, 01010101
16 65,536 1010101010101010
Image Sizes in bits for Different Spatial
and Gray Level Resolutions
Using column
duplication process
Using nearest
neighbor
Using bilinear
interpolation
unchanged
spatial
resolution
Gray level
256 levels 128 levels changed from
256 to 32
64 levels 32 levels
Effect of Gray level Resolutions
Gray level
changed
from 16 to 2
16 levels 8 levels
In this image,
it is easy to see
false contour.
4 levels 2 levels
Effect of Gray level Resolutions
Ridge-like structure in
the smooth area
Effect of Spatial and Gray Level
Resolutions
• Gray level changed from
16 to 2
• Ridge-like structure
is more prominent
• Reason: insufficient
number of gray
levels used
Resolution: How Much Is Enough?
RGB components
10 10 16 28
9 656 70 26
56 43
3756 78
32 99 54 96 67
70
15 256013 902296 67
21 54 47 42
32 15 87 39
85 85 43 92
54 65 65 39
32 65 87 99
Image Types : Binary Image
Binary image or black and white image
Each pixel contains one bit :
1 represent white
0 represents black
Binary data
0 0 0 0
0 0 0 0
1 1 1 1
1 1 1 1
Image Types : Index Image
Index image
Each pixel contains index number
pointing to a color in a color table
Color Table