Proc Imagini
Proc Imagini
Proc Imagini
Nonlinear Raise
Invert Lighten Raise Contrast Contrast
Point Processing
Nonlinear Lower
Original Darken Lower Contrast Contrast
Nonlinear Raise
Invert Lighten Raise Contrast Contrast
• Commutative
a b b a
• Associative
a b c a b c
• Cascade system
f h1 h2 g
f h1 h2 g
f h2 h1 g
Convolution
Convolution is linear and shift invariant
g x f hx d g f h
f
x
h h
kernel h
Convolution - Example
f
g
f g
Eric Weinstein’s Math World
Convolution - Example
a x b x
1 1
-1 1 -1 1
c a b
c x
1
-2 -1 1 2
Point Spread Function
Optical
scene System
image
x Optical
System
PSF x
point source point spread function
astigmatism
Images by Richmond Eye Ass
Original Image
Blurred Image
Gaussian Smoothing
http://www.michaelbach.de/ot/cog_blureffects
Gaussian Smoothing
http://www.michaelbach.de/ot/cog_blureffects
Original Image
Sharpened Image
Sharpened Image
Original Image
Noise
Blurred Noise
Median Filter
• Smoothing is averaging (a)
• Median filtering
– Sort N 2 1 values around the pixel
– Select middle value (median)
sort median
3x3
5x5
7x7
Example: Noise Reduction
1/8
1/4
Good sampling:
•Sample often or,
•Sample wisely
Bad sampling:
•see aliasing in action!
Aliasing
Alias: n., an assumed name
Input signal:
Matlab output:
Picket fence receding
into the distance will
produce aliasing…
Alias!
G 1/8
G 1/4
Gaussian 1/2
• Solution: filter the image, then subsample
– Filter size should double for each ½ size reduction. Why?
Sub-Sampling with Gaussian Pre-Filtering
+ =
how?
Advection (just like a fluid)