Image Processing and Related Fields!: Bernd Girod: EE368 Digital Image Processing! Introduction No. 22!
Image Processing and Related Fields!: Bernd Girod: EE368 Digital Image Processing! Introduction No. 22!
http://en.wikipedia.org/wiki/File:CVoverview2.svg!
„Contouring“
8
4
2
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 5!
How many gray levels are required?!
32 levels!
64 levels!
128 levels!
256 levels!
I + ΔI
Note: I is luminance,
125!
126!
128!
129!
130!
127!
I measured in cd m 2
Visibility threshold!
„Weber fraction“!
ΔI I ≈ KWeber ≈ 1…2% „Weberʻs Law“!
I max 255
= (1 + KWeber )
I min
I max
For! KWeber = 0.010.02 = 13156
Typical display contrast!
I min
Cathode ray tube 100:1!
Print on paper 10:1!
Suggests uniform perception in the log(I) domain
(„Fechnerʻs Law“)!
Voltage U!
U
U ~ log(I )
U ~ I1 γ
Imax
= 100
Imin
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 10!
Photographic film!
Hurter & Driffield curve (H&D curve)!
for photographic negative!
„linear“ region!
1.0
= I 0 ⋅10 − d0 ⋅ E γ
toe! log E
0
d0
E is exposure
γ measures film contrast!
General purpose films: γ = -0.7 . . . -1.0!
High-contrast films: γ = -1.5 . . . -10!
Lower speed films tend to have higher absolute γ!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 11!
Intensity scaling!
f [ x, y ] a ⋅ f [ x, y ]
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 12!
Adjusting γ!
f [ x, y ] γ
a ⋅ ( f [ x, y ]) with γ = 1.5
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 13!
Image Processing Examples!
Face morphing!
Source: Yi-Wen Liu and Yu-Li Hsueh, EE368 class project, spring 2000.!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 15!
#pixels! Example histogram!
Cameraman!
image!
gray level!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 16!
#pixels!
Example histogram!
Pout!
image!
gray level!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 17!
Histogram equalization!
0
≤ f ≤ 1 0 ≤ g ≤1
T(f) is strictly monotonically increasing, hence, there
exists!
f = T −1 ( g ) 0 ≤ g ≤1
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 18!
Histogram equalization example!
Original image Pout! . . . after histogram equalization!
#pixels!
#pixels!
gray level! gray level!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 22!
Histogram equalization example!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 21!
Histogram equalization example!
Original image Cameraman! . . . after histogram equalization!
#pixels!
#pixels!
gray level! gray level!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 24!
Histogram equalization example!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 23!
Histogram equalization example!
Original image Moon! . . . after histogram equalization!
#pixels!
#pixels!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 26!
Histogram equalization example!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 25!
Adaptive histogram equalization!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 27!
Adaptive histogram equalization!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 28!
Adaptive histogram equalization!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 29!
Point operations for combining images!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 30!
Image averaging for noise reduction!
1 image 2 images 4 images!
http://www.cambridgeincolour.com/tutorials/image-averaging-noise.htm!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 31!
High-dynamic range imaging!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 35!
Absolute difference between two images!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 36!
Digital subtraction angiography!
-! +!
Contrast!
enhancement!
http://www.isi.uu.nl/Research/Gallery/DSA/!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 37!
Gray-level thresholding!
How can holes be filled?!
pdf!
Background!
Foreground!
error
probability! Gray level!
Foreground!
error
probability! Gray level!
If different outcomes are associated with different costs:
more general “Bayes minimimum risk detector”!
Color is more powerful for pixel-wise segmentation: 3-d vs. 1-d space!
Take picture in front of a blue screen (or green, or orange)!
Effects!
{ } (
g ⎡⎣ x, y ⎤⎦ = OR ⎡⎣W f ⎡⎣ x, y ⎤⎦ ⎤⎦ := dilate f ,W )
Expands the size of 1-valued objects!
Smoothes object boundaries!
Closes holes and gaps!
Bernd Girod: EE368 Digital Image Processing! Morphological image processing no. 3!
Example: blob separation/detection by erosion!
Original! Erosion!
binary! by 11x11 !
image! structuring!
circles! element!
Erosion ! Erosion!
by 21x21 ! by 27x27 !
structuring! structuring!
element! element!
Bernd Girod: EE368 Digital Image Processing! Morphological image processing no. 5!
Example: counting coins!
1 connected
Original thresholded component
22 connected
dilation thresholded after dilation
components
Courtesy: P. Salembier!
Bernd Girod: EE368 Digital Image Processing! Morphological image processing no. 26!
Morphological edge detector!
original f
dilation g
Courtesy: P. Salembier!
g-f
(g-f) thresholded
Bernd Girod: EE368 Digital Image Processing! Morphological image processing no. 28!
Example!
Bernd Girod: EE368 Digital Image Processing! Image Filtering and Deconvolution no. 9!
Example (cont.)!
! 0.5 0 0 0 $
# &
# 0.5 0 0 0 &
# 0 0.5 0 0 &
# 0 0.5 0 0 &
Hx = Hy = # &
# 0 0 0.5 0 &
# 0 0 0.5 0 &
# 0 0 0 0.5 &
# &
" 0 0 0 0.5 %
n Can you figure out what this does to the image?!
n Why is this a better technique than the previous one?!
Bernd Girod: EE368 Digital Image Processing! Image Filtering and Deconvolution no. 10!
Side by side comparison!
! 1 0 0 0 $ ! 0.5 0 0 0 $
# & # &
# 0 0 0 0 & # 0.5 0 0 0 &
# 0 1 0 0 & # 0 0.5 0 0 &
# 0 0 0 0 & # 0 0.5 0 0 &
Hx = Hy = # & Hx = Hy = # &
# 0 0 1 0 & # 0 0 0.5 0 &
# 0 0 0 0 & # 0 0 0.5 0 &
# 0 0 0 1 & # 0 0 0 0.5 &
# & # &
" 0 0 0 0 % " 0 0 0 0.5 %
Bernd Girod: EE368 Digital Image Processing! Image Filtering and Deconvolution no. 11!
Filtering Examples!
Bernd Girod: EE368 Digital Image Processing! Image Filtering and Deconvolution no. 20!
Filtering Examples!
Bernd Girod: EE368 Digital Image Processing! Image Filtering and Deconvolution no. 21!
Filtering Examples!
Bernd Girod: EE368 Digital Image Processing! Image Filtering and Deconvolution no. 23!
Filtering Examples!
Bernd Girod: EE368 Digital Image Processing! Image Filtering and Deconvolution no. 24!
Why do we process images?!
Acquire an image!
– Correct aperture and color balance
– Reconstruct image from projections
Prepare for display or printing!
– Adjust image size
– Halftoning
Facilitate picture storage and transmission!
– Efficiently store an image in a digital camera
– Send an image from Mars to Earth
Enhance and restore images!
– Remove scratches from an old movie
– Improve visibility of tumor in a radiograph
Extract information from images!
– Read the ZIP code on a letter
– Measure water pollution from aerial images
!
Source: IVPL Northwestern University, Chicago
Noise reduction!
Halftoning!
Bernd Girod: EE368 Digital Image Processing! Image Filtering and Deconvolution no. 55!
Image Processing Examples!
Special Effects!
http://cs.stanford.edu/group/roadrunner/stanley.html!
Face Detection!
source: Henry Chang, Ulises Robles, EE368 class project, spring 2000.
Face Detection!
source: Michael Bax, Chunlei Liu, and Ping Li, EE368 class project, spring 2003.
http://www.platerecognition.info/1103.htm!
http://ezine.motorola.com/government?a=325!
FBIʼs
Integrated
Automated
Fingerprint
Identification
System!
IAFIS!
Mugshot retrieval!
1! 2! 3! 4!
5! 6! 7! 8!
9! 10!
Bernd Girod: EE368 Digital Image Processing! Introduction no. 27!
Spring 2008 Project:
CD Cover Recognition!