Digital Image Fundamentals: Those Who Wish To Succeed Must Ask The Right Preliminary Questions. Aristotle
Digital Image Fundamentals: Those Who Wish To Succeed Must Ask The Right Preliminary Questions. Aristotle
1
Contents in Chapter 2
2.1 Elements of Human Visual Perception
2.2 Light and Electromagnetic Spectrum
2.3 Image Sensing and Acquisition
2.4 Image Sampling and Quantization
2.5 Some Basic Relationships Between Pixels
2.6 Linear and nonlinear operations
2
2.1 Elements of Visual Perception
The importance of visual perception in DIP:
Although the foundation of digital image processing
is based on mathematical and probabilistic
formulations, human subjective visual judgments
plays a central role in the choice of one technique
over another.
We are interested in the mechanics and parameters
related to how images are formed in our eyes.
3
2.1.1 Structure of the Human Eye
Figure 2.1 shows a
simplified diagram of a
cross section of the
human eye.
The eye is a sphere
with average diameter
20mm.
Fig. 2.1
4
2.1.1 Structure of the Human Eye
Three membranes enclose the eye:
Layer1(outer cover):Cornea ( 角膜 ) and Sclera ( 鞏膜 )
Layer2 : Choroid ( 脈絡膜 )
Front: Ciliary body 睫狀體 控制眼球轉動及聚焦
Iris diaphragm 虹膜 Control the amount of incoming light
Pupil ( 瞳孔 ) :the central opening of Iris varied from 2-8mm
5
2.1.1 Structure of the Human Eye
Lens ( 晶狀體 ) :
contains 60-70% of water, 6% fat and protein.
Cataract ( 白內障 ) may cause poor vision.
Absorb 8% of visible light and most infrared&
ultraviolet by protein. Excessive light may damage.
Layer3 : Retina ( 視網膜 )
Contains distribution of discrete two classes of light
receptors (1) Cones (2) Rods (See Fig. 2.2)
6
2.1.1 Structure of the Human Eye
Cones: 6-7 million/eye (see Fig. 2.2 Distribution)
>Distribution centered at fovea
> Highly sensitive to color;
> can resolve fine details because has its own nerve.
> called photopic or bright light vision.
Rods: 75-150 millions/eye,
> Lower resolution because several rods share a
nerve.
> Gives a general overall picture of a view.
> not involved in color, but sensitive to lower level
of light. Called scotopic or dim-light vision.
7
2.1.2 Image Formation in the Eye
Figure 2.3
人眼的 lens ,厚薄曲度可由眼肌 ( 睫毛體 ) 之鬆緊控制以便調
整焦距 (focal length).
看遠物: lens 較平坦 ( 鬆 ) (Max. focal length ~17mm)
I ΔI :閃動的微量
I+ΔI
ΔIc : The difference that a subject can notice 50% of the time.
例:觀測四次,辨識出兩次 (Brightness Discern)
Weber Ratio
I c
若 Ratio 小:在光強度 I 時,亮度分辨力強
I
若 Ratio 大:在光強度 I 時,亮度分辨力弱
10
JND(Just Noticeable Difference)
一般人 Brightness discern 之能力
如何解讀?
Rods
Cones
11
實驗: JND
觀測自己的 JND 曲線 (Use MATLAB GUI)
考慮參數
周圍亮度
觀察距離遠近
每隔 10 個 gray level 觀測一個 JND 值
ΔIc
12
0 255
(Figure 2.7a)
Perceived Brightness is not a
simple function of Intensity!!
13
(Figure 2.8) Example of
Simultaneous Contrast
Fig. 2.9
Some Well-know Optical Illusions
14
Fig. 2.9 Some well-know
Optical Illusions
觀測自己的 JND 曲線 (Use MATLAB GUI)
考慮參數
周圍亮度
觀察距離遠近
每隔 10 個 gray level 觀測一個 JND 值
ΔIc
15
0 255
2.2 More on Light and
EM Spectrum
Fig. 2.10 EM spectrum
Wavelength= (light speed)/(frequency HZ)
where light speed is a constant (2.998x10^8m/s)
The energy of a photon
E=(Planck’s constant)x(its frequency) (in Electron volts)
16
2.2 More on Light and
EM Spectrum (color)
Color: Perceived color of an object is determined
by the light reflected from the surface of the object.
17
2.2 More on Light and
EM Spectrum (color)
Mono-Chrome light has only one attribute:
intensity. (described in gray level)
Dark Gray White
Chromatic light has three attributes:
(1) Radiance (Watt): Energy flows from light source
(2) Luminance (Lumens): Energy perceived by an observer.
(Ingrared has high W but very low Lm)
(3) Brightness: Subjective description of light perception
which is impossible to measure.
18
2.2 More on Light and
EM Spectrum
Applications of Non-visible light (see page
45, 2nd paragraph)
19
2.3 Image Sensing and Acquisition
“Illumination” On “Scene”, and detect
the energy reflected from or passing through
the scene.
Possible Illuminations: Visible Light, EM,
sound, or even computer generated
illumination pattern etc.
20
2.3 Image Sensing and Acquisition
Sensor: To convert detected energy to
electrical voltage signal.
21
2.3.4 A Simple Image model
Image : 2D light-intensity function
f(x,y), 0<f(x,y)<∞
0 i ( x, y )
Light f ( x, y ) i ( x, y ) r ( x, y )
0 r ( x, y ) 1
入射光: illumination
i(x,y) :在 (x,y) 之入射光強度
r(x,y) :在 (x,y) 之反射率
反射率: reflectance
22
2.3.4 A Simple Image model
i(x,y) r(x,y)
23
2.3.4 A Simple Image model
Gray level(l)
The intensity of a monochrome image of
f(x,y)
Lmin < l <Lmax
26
2.3.1 Uniform Sampling and quantization
用語
Image : digital image
Pixel : basic element in a digital Image
27
2.4.2 Representation of Digital Images
How many number of bits are required to
store for a digital image?
M
f ( x, y ) [ Lmin , Lmax ] [0, L]( [0,255])
M=log264=6 bits
29
2.4.3 Spatial an Gray Level Resolution
34
2.4.5 Zooming and Shrinking
Digital Images
Two steps in Zooming ( 放大 ):
Fro example: 500x500 750x750
Step1: Laying 750x750 grids over the 500x500 image
Step2: Assigning each of the 750x750 pixels value by
nearest neighbor interpolation (NNI)
Pixel replication is a special NNI for enlarging the
image by any integer number of times
may cause checkerboard effects (Fig20e-f)
A more sophisticated interpolation is Bilinear
Interpolation (see Fig. 2.25) 35
2.4.5 Zooming and Shrinking
Digital Images
Shrinking ( 縮小 ) (same process as zooming):
Fro example: 500x500 350x350
Step1: Laying 350x350 grids over the 500x500 image
Step2: Assigning each of the 350x350 pixels value by
nearest neighbor interpolation (NNI)
Pixel deletion is a special NNI for shrinking the
image by any integer number of times
Smoothing before deletion to avoid aliasing.
Using more neighbors for interpolation are important in 3D
interpolation. more computations.
Bilinear Interpolation is usually the best choice.
36
2.5 Some basic Relationships
Between Pixels
2.5.1 Neighbors of a pixel P at location (x,y)
The 4 neighbors of pixel P (denoted as N4 (P)):
are pixels at (x-1,y), (x+1,y), (x, y-1), (x,y+1).
The 4 diagonal neighbors of pixel P (ND (P))
are pixels at (x-1,y-1),(x-1,y+1), (x+1, y-1),
(x+1,y+1).
37