CH 2. Digital Image Fundamentals
CH 2. Digital Image Fundamentals
-1-
Ch2. Digital Image Fundamentals
Contents
-2-
Ch2. Digital Image Fundamentals
-3-
Ch2. Digital Image Fundamentals
-4-
Ch2. Digital Image Fundamentals
-5-
Ch2. Digital Image Fundamentals
-6-
Ch2. Digital Image Fundamentals
-7-
Ch2. Digital Image Fundamentals
– Brightness adaptation:
• The visual system cannot operate over such a range
simultaneously.
– Weber ratio: Ic/I
Ic : the increment of illumination discriminable 50% of the
time with background illumination I
• The small ratio, the larger disciminable
• The larger ratio, the poorer discriminable
-8-
Ch2. Digital Image Fundamentals
– Perceived brightness is
not a simple function of
intensity
• Two phenomena
1) Mach band
2) Simultaneous contrast
– Mach band
• The intensity of the
stripes is constant,
but we actually
perceive more
brightness near the
boundaries
-9-
Ch2. Digital Image Fundamentals
– Simultaneous contrast :
• A region’s perceived brightness does not depend simply on
its intensity.
-10-
Ch2. Digital Image Fundamentals
– Optical illusion:
• The eye fills in
nonexisting information
or wrongly perceives
geometrical properties of
objects.
• A characteristics of the
human visual system that
is not fully understood.
-11-
Ch2. Digital Image Fundamentals
Electromagnetic spectrum
– Visible light represents a very small portion of the EM
spectrum
-12-
Ch2. Digital Image Fundamentals
h : Planck’s constant
-13-
Ch2. Digital Image Fundamentals
Image sensing
– Transform illumination
energy into digital
images
Three principal sensor
arrangements
1) Single imaging sensor
2) Line sensor
3) Array sensor
-14-
Ch2. Digital Image Fundamentals
-15-
Ch2. Digital Image Fundamentals
-16-
Ch2. Digital Image Fundamentals
-17-
Ch2. Digital Image Fundamentals
Basic concepts
– Sampling:
digitizing the
coordinate values
– Quantization:
digitizing the
amplitude values
-19-
Ch2. Digital Image Fundamentals
-20-
Ch2. Digital Image Fundamentals
-21-
Ch2. Digital Image Fundamentals
-22-
Ch2. Digital Image Fundamentals
-23-
Ch2. Digital Image Fundamentals
-24-
Ch2. Digital Image Fundamentals
– Example 2.3:
• False contouring appear when using 16 or less gray levels
-25-
Ch2. Digital Image Fundamentals
– Isopreference curves
• Points lying on an isopreference curve correspond to
images of equal subjective quality.
• Images with large detail is nearly independent of the
number of gray levels used
Isopreference curve is nearly vertical
Ex) crowd
• Perceived quality in the images with low and medium
detail remains the same when the N is increased but k is
decreased.
Ex) Face and Cameraman
-26-
Ch2. Digital Image Fundamentals
isopreference curves
-27-
Ch2. Digital Image Fundamentals
-28-
Ch2. Digital Image Fundamentals
– Methods of gray-
level assignment
• Nearest neighbor
interpolation
• Bilinear
interpolation
– To reduce possible
aliasing effects, blur
the image before
shrinking
– Example 2.4
-29-
Ch2. Digital Image Fundamentals
Neighbors of pixel
– N4(p): 4-neighbors of p
• {(x+1, y), (x-1, y), (x, y+1), (x, y-1)}
– ND(p): 4 diagonal neighbors of p
• {(x+1, y+1), (x+1, y-1), (x-1, y+1), (x-1, y-1)}
– N8(p): 8-neighbors of p
• N4(p)+ ND(p) (x-1,y-1) (x,y-1) (x+1,y-1)
P
(x-1,y) (x+1,y)
(x,y)
-30-
Ch2. Digital Image Fundamentals
Ambiguity is removed
-31-
Ch2. Digital Image Fundamentals
– Boundary(border or contour)
• Closed path
• “global” concept
– Edge
• Intensity discontinuities
• “local” concept
Distance measures
– For pixels p, q, z with coordinates (x,y), (s,t), (v,w), D is a
distance function or metric if
1) D(p,q) 0 (D(p,q) = 0 iff p=q)
2) D(p,q) = D(q,p), and
3) D(p,z) D(p,q) + D(q,z)
-32-
Ch2. Digital Image Fundamentals
– Euclidean distance
• De(p,q) = [(x-s)2 + (y-t)2]1/2
– D4 distance (city-block distance)
• D4(p,q) = |x-s| + |y-t|
• Ex: D4 distance 2
2
2 1 2
2 1 0 1 2
2 1 2
2
-33-
Ch2. Digital Image Fundamentals
2 2 2 2 2
2 1 1 1 2
2 1 0 1 2
2 1 1 1 2
2 2 2 2 2
-34-
Ch2. Digital Image Fundamentals
– Dm distance
• Shortest m-path between the points
• Example
P3 p4
p1 p2 V={1}
p
① If p1 = 0, P3 = 0, Dm = 2
② If p1 = 1, P3 = 0, Dm = 3
③ If p1 = 1, P3 = 1, Dm = 4
Image operations on a pixel basis
– Arithmetic and logic operations are defined between
corresponding pixels in the images involved.
-35-
Ch2. Digital Image Fundamentals
Linear operation
– H is linear operator if, for two images f and g and any
two scalars a and b,
H(af + bg) = aH(f) + bH(g)
– Ex) an operator that computes the sum of K images
Nonlinear operation
– An operator that fails the above equation.
– Ex) an operator that computes the absolute values of the
difference of two images
-36-