Lecture 11
Lecture 11
CSE486
Lecture 11:
LoG and DoG Filters
Robert Collins
CSE486
Today’s Topics
F(x)
F ’(x)
x
(1D example)
O.Camps, PSU
Robert Collins
CSE486
Second-Derivative Filters
O.Camps, PSU
Robert Collins
CSE486
Numerical Derivatives
See also T&V, Appendix A.2
add
[ 1 -2 1 ]
I(x,y)
2nd Partial deriv wrt x
1
-2
1 Iyy=d2I(x,y)/dy2
2nd Partial deriv wrt y
Robert Collins
CSE486
Example: Second Derivatives
Ixx Iyy
Ix Iy
Robert Collins
CSE486
Finding Zero-Crossings
An alternative approx to finding edges as peaks in
first deriv is to find zero-crossings in second deriv.
In 1D, convolve with [1 -2 1] and look for pixels
where response is (nearly) zero?
Problem: when first deriv is zero, so is second. I.e.
the filter [1 -2 1] also produces zero when convolved
with regions of constant intensity.
1D 2D
y
step edge
F(x)
I(x) I(x,y) x
x
2nd deriv 1st deriv
Ixx+Iyy
∇2I(x,y)
Robert Collins
CSE486
Notes about the Laplacian:
• ∇2I(x,y) is a SCALAR
– ↑ Can be found using a SINGLE mask
– ↓ Orientation information is lost
• ∇2I(x,y) is the sum of SECOND-order derivatives
– But taking derivatives increases noise
– Very noise sensitive!
• It is always combined with a smoothing operation:
I(x,y) O(x,y)
Smooth Laplacian
O.Camps, PSU
Robert Collins
CSE486
LoG Filter
• First smooth (Gaussian filter),
• Then, find zero-crossings (Laplacian filter):
– O(x,y) = ∇2(I(x,y) * G(x,y))
x2 x2
1 − 2 x − 2
g ' ( x) = − 2 2 xe 2σ
=− 2 e 2σ
2σ σ
2 x2
x 1 − 2σ 2
g ' ' ( x) = ( 43 − 2 )e
σ σ
O.Camps, PSU
Robert Collins
CSE486
Second Derivative of a Gaussian
2 x2
x 1 − 2
g ' ' ( x) = ( 43 − 2 )e 2σ
σ σ
2D
analog
O.Camps, PSU
Robert Collins
CSE486
Effect of LoG Operator
Original LoG-filtered
Think of equal-elevation
contours on a topo map.
LoG maxima
sigma = 2
minima
Robert Collins
CSE486
LoG Extrema, Detail
maxima
LoG sigma = 2
Robert Collins
CSE486
LoG Blob Finding
LoG filter extrema locates “blobs”
maxima = dark blobs on light background
minima = light blobs on dark background
maxima
Robert Collins
CSE486
Observe and Generalize
and it responds
maximally in the
eye region!
Robert Collins
CSE486
Observe and Generalize
LoG Derivative of Gaussian
1D example
M.Hebert, CMU
Robert Collins
CSE486
Efficient Implementation
The Laplacian Pyramid as a Compact Image Code Burt, P., and Adelson, E. H.,
IEEE Transactions on Communication, COM-31:532-540 (1983).