Академический Документы
Профессиональный Документы
Культура Документы
Filtering
Computer Vision I
CSE252A
Lecture 10a
CS252A, Winter 2005
Computer Vision I
Computer Vision I
Computer Vision I
Filtering Exampel:
Smoothing by Averaging
Kernel:
Convolution: R= K*I
Computer Vision I
Properties of convolution
m=2
f * g ( x, y ) =
f ( x u, y v) g (u, v)dudv
Commutative: f*g=g*f
Associative: f*(g*h)=(f*g)*h
Linear: for scalars a & b and images f,g,h
Kernel size
is m+1 by m+1
CS252A, Winter 2005
R(i, j) =
m/ 2
(af+bg)*h=a(f*h)+b(g*h)
m/ 2
K(h, k)I (i h, j k)
h=m / 2 k =m / 2
Computer Vision I
Differentiation rule
CS252A, Winter 2005
f
g
( f * g) = * g = f *
x
x
x
Computer Vision I
Additive noise
Fourier Transform
si deterministic.
ni , n j independent for ni n j
ni , n j identically distributed
Computer Vision I
Computer Vision I
Fourier Tansform
Fourier basis element
e i2 (ux +vy)
Transform is sum of orthogonal
basis functions
Vector (u,v)
Magnitude gives frequency
Direction gives orientation.
Inverse DFT
Computer Vision I
Computer Vision I
Computer Vision I
Computer Vision I
Dominant Orientation
Demonstration
Take two pictures, swap the phase transforms, compute the
inverse - what does the result look like?
Computer Vision I
Computer Vision I
This is the
magnitude
transform
of the
cheetah pic
Computer Vision I
Computer Vision I
Computer Vision I
Computer Vision I
This is the
phase
transform
of the
cheetah pic
This is the
phase
transform
of the
zebra pic
This is the
magnitude
transform
of the
zebra pic
Computer Vision I
Reconstruction
with zebra
phase, cheetah
magnitude
Computer Vision I
Reconstruction
with cheetah
phase, zebra
magnitude
Computer Vision I
Computer Vision I
Important facts
scale function down scale transform up
i.e. high frequency = small details
Computer Vision I
Computer Vision I
Smoothing by Averaging
An Isotropic Gaussian
Kernel:
(which is a reasonable
model of a circularly
symmetric fuzzy blob)
CS252A, Winter 2005
Computer Vision I
Computer Vision I
Efficient Implementation
Kernel:
Computer Vision I
Computer Vision I
Median filter
Anisotropic diffusion
Quantization effects
Often called noise although it is not statistical
Computer Vision I
Computer Vision I
Method :
1,1,1,7,1,1,1,1
non-linear filter
no new grey levels emerge...
?,1,1,1.1,1,1,?
Computer Vision I
Computer Vision I
3 x 3 median filter :
Computer Vision I
Computer Vision I
Example of median
Applying a filter at
Insight
some point can be
filters look like the
effects they are
seen as taking a dotintended to find
product between the
filters find effects they
image and some vector
look like
Filtering the image is a
set of dot products
10 times 3 X 3 median
patchy effect
important details lost (e.g. ear-ring)
CS252A, Winter 2005
Computer Vision I
Computer Vision I