Lecture02 Image Processing
Lecture02 Image Processing
Chapter 2
Digital Image Fundamentals
Reflected Light
The colours that we perceive are determined by the nature
of the light reflected from an object
For example, if white light is shone onto a green object
most wavelengths are absorbed, while green light is
reflected from the object
Colours
Absorbed
Simple Image Model
Monochrome(Gray) Image : f(x,y)
f(x,y) = intensity value at coordinates (x,y)
0 < f(x,y) < ∞ ; f(x,y) is energy
Simple Image Model
Simple image formation
f(x,y) = i(x,y)r(x,y)
i(x,y): illumination (determined
by ill. Source)
0 < i(x,y) < ∞
r(x,y) reflectance (determined
by imaged object)
0 < r(x,y) < 1
In real situation
Lmin ≤ l (=f(x,y)) ≤ Lmax
L : gray level
Sampling & Quantization
Image sampling
Digitization of spatial coordinates (x,y)
A digital sensor can only measure a limited number
of samples at a discrete set of energy levels
Quantization
Amplitude digitization
In all types of sensors, quantization of the sensor output
completes the process of generating digital image.
The quality of a digital image is determined to a large
degree by the number of samples and discrete gray
levels used in sampling and quantization
Sampling & Quantization
Sampling & Quantization
Remember that a digital image is always only an approximation
of a real world scene
Representing Digital Image
a digital image is composed of M rows and N columns of
pixels each storing a value
Digital Image
22222
21112
21012
21112
22222
Arithmetic/Logic Operations
Arithmetic operation
Addition: p+q
Subtraction: p-q
Multiplication: pxq
Division: p ÷ q
Logic Operation
AND: p AND q (p. q)
OR: p OR q (p + q)
COMPLEMENT: NOT q ( q )
Logic Operations
Logic Operations