Sift Detector and Descriptor: (Scale Invariant Feature Transform)
Sift Detector and Descriptor: (Scale Invariant Feature Transform)
11/1/2010
11/1/2010
11/1/2010
11/1/2010
Implementation Concern:
How do you rotate a patch?
11/1/2010
Rotating a Patch
(x,y)
T
(x,y)
x = x cos y sin
y = x sin + y cos
counterclockwise rotation
11/1/2010
I01
I11
I00
11/1/2010
I10
SIFT: Motivation
1But
11/1/2010
Idea of SIFT
Image content is transformed into local feature
coordinates that are invariant to translation, rotation,
scale, and other imaging parameters
SIFT Features
11/1/2010
10
11/1/2010
11
2. Keypoint localization
Fit a model to detrmine location and scale.
Select keypoints based on a measure of stability.
3. Orientation assignment
Compute best orientation(s) for each keypoint region.
4. Keypoint description
Use local image gradients at selected scale and rotation
to describe each keypoint region.
11/1/2010
12
11/1/2010
13
11/1/2010
14
11/1/2010
15
11/1/2010
16
G 1/8
G 1/4
Gaussian 1/2
11/1/2010
17
Scale-space detection
11/1/2010
18
11/1/2010
Gaussian is an ad hoc
solution of heat
diffusion equation
Hence
20
s+2 filters
s+1=2(s+1)/s0
.
.
i=2i/s0
.
.
2=22/s0
1=21/s0
0
11/1/2010
s+3
images
including
original
The parameter s determines the number of images per octave.
s+2
difference
images
21
11/1/2010
Resample
Blur
Subtract
22
% correctly matched
average no. matched
Stability
Expense
11/1/2010
Keypoint localization
11/1/2010
24
Reject flats:
< 0.03
Reject edges:
Let be the eigenvalue with
larger magnitude and the smaller.
Let r = /.
So = r
r < 10
What does this look like?
11/1/2010
(r+1)2/r is at a
min when the
2 eigenvalues
are equal.
25
3. Orientation assignment
Create histogram of
local gradient directions
at selected scale
Assign canonical
orientation at peak of
smoothed histogram
Each key specifies
stable 2D coordinates
(x, y, scale,orientation)
26
233x189
832
initial keypoints
729
keypoints after
gradient threshold
11/1/2010
536
keypoints after
ratio threshold
27
4. Keypoint Descriptors
location
scale
orientation
11/1/2010
highly distinctive
invariant as possible to variations such as
changes in viewpoint and illumination
28
Normalization
11/1/2010
29
30
11/1/2010
31
11/1/2010
32
11/1/2010
33
11/1/2010
34