SlideShare a Scribd company logo
Feature extraction: Corners and blobs
Why extract features?
• Motivation: panorama stitching
• We have two images – how do we combine them?
Why extract features?
• Motivation: panorama stitching
• We have two images – how do we combine them?
Step 1: extract features
Step 2: match features
Why extract features?
• Motivation: panorama stitching
• We have two images – how do we combine them?
Step 1: extract features
Step 2: match features
Step 3: align images
Characteristics of good features
• Repeatability
• The same feature can be found in several images despite geometric
and photometric transformations
• Saliency
• Each feature has a distinctive description
• Compactness and efficiency
• Many fewer features than image pixels
• Locality
• A feature occupies a relatively small area of the image; robust to
clutter and occlusion
Applications
Feature points are used for:
• Motion tracking
• Image alignment
• 3D reconstruction
• Object recognition
• Indexing and database retrieval
• Robot navigation
Finding Corners
• Key property: in the region around a corner,
image gradient has two or more dominant
directions
• Corners are repeatable and distinctive
C.Harris and M.Stephens. "A Combined Corner and Edge Detector.“
Proceedings of the 4th Alvey Vision Conference: pages 147--151.
The Basic Idea
• We should easily recognize the point by
looking through a small window
• Shifting a window in any direction should
give a large change in intensity
“edge”:
no change
along the edge
direction
“corner”:
significant
change in all
directions
“flat” region:
no change in
all directions
Source: A. Efros
Harris Detector: Mathematics
[ ]
2
,
( , ) ( , ) ( , ) ( , )
x y
E u v w x y I x u y v I x y
= + + −
∑
Change in appearance for the shift [u,v]:
Intensity
Shifted
intensity
Window
function
or
Window function w(x,y) =
Gaussian
1 in window, 0 outside
Source: R. Szeliski
Harris Detector: Mathematics
[ ]
2
,
( , ) ( , ) ( , ) ( , )
x y
E u v w x y I x u y v I x y
= + + −
∑
Change in appearance for the shift [u,v]:
Second-order Taylor expansion of E(u,v) about (0,0)
(bilinear approximation for small shifts):
⎥
⎦
⎤
⎢
⎣
⎡
⎥
⎦
⎤
⎢
⎣
⎡
+
⎥
⎦
⎤
⎢
⎣
⎡
+
≈
v
u
E
E
E
E
v
u
E
E
v
u
E
v
u
E
vv
uv
uv
uu
v
u
)
0
,
0
(
)
0
,
0
(
)
0
,
0
(
)
0
,
0
(
]
[
2
1
)
0
,
0
(
)
0
,
0
(
]
[
)
0
,
0
(
)
,
(
Harris Detector: Mathematics
The bilinear approximation simplifies to
2
2
,
( , ) x x y
x y x y y
I I I
M w x y
I I I
⎡ ⎤
= ⎢ ⎥
⎢ ⎥
⎣ ⎦
∑
where M is a 2×2 matrix computed from image derivatives:
⎥
⎦
⎤
⎢
⎣
⎡
≈
v
u
M
v
u
v
u
E ]
[
)
,
(
M
The surface E(u,v) is locally approximated by a
quadratic form. Let’s try to understand its shape.
Interpreting the second moment matrix
⎥
⎦
⎤
⎢
⎣
⎡
≈
v
u
M
v
u
v
u
E ]
[
)
,
(
⎥
⎥
⎦
⎤
⎢
⎢
⎣
⎡
= ∑ 2
2
y
y
x
y
x
x
I
I
I
I
I
I
M
⎥
⎦
⎤
⎢
⎣
⎡
=
⎥
⎥
⎦
⎤
⎢
⎢
⎣
⎡
= ∑
2
1
2
2
0
0
λ
λ
y
y
x
y
x
x
I
I
I
I
I
I
M
First, consider the axis-aligned case
(gradients are either horizontal or vertical)
If either λ is close to 0, then this is not a corner, so
look for locations where both are large.
Interpreting the second moment matrix
General Case
Since M is symmetric, we have R
R
M ⎥
⎦
⎤
⎢
⎣
⎡
= −
2
1
1
0
0
λ
λ
We can visualize M as an ellipse with axis
lengths determined by the eigenvalues and
orientation determined by R
direction of the
slowest change
direction of the
fastest change
(λmax)-1/2
(λmin)-1/2
const
]
[ =
⎥
⎦
⎤
⎢
⎣
⎡
v
u
M
v
u
Ellipse equation:
Visualization of second moment matrices
Visualization of second moment matrices
Interpreting the eigenvalues
λ1
λ2
“Corner”
λ1 and λ2 are large,
λ1 ~ λ2;
E increases in all
directions
λ1 and λ2 are small;
E is almost constant
in all directions
“Edge”
λ1 >> λ2
“Edge”
λ2 >> λ1
“Flat”
region
Classification of image points using eigenvalues
of M:
Corner response function
“Corner”
R > 0
“Edge”
R < 0
“Edge”
R < 0
“Flat”
region
|R| small
2
2
1
2
1
2
)
(
)
(
trace
)
det( λ
λ
α
λ
λ
α +
−
=
−
= M
M
R
α: constant (0.04 to 0.06)
Harris detector: Steps
1. Compute Gaussian derivatives at each pixel
2. Compute second moment matrix M in a
Gaussian window around each pixel
3. Compute corner response function R
4. Threshold R
5. Find local maxima of response function
(nonmaximum suppression)
Harris Detector: Steps
Harris Detector: Steps
Compute corner response R
Harris Detector: Steps
Find points with large corner response: R>threshold
Harris Detector: Steps
Take only the points of local maxima of R
Harris Detector: Steps
Invariance
• We want features to be detected despite
geometric or photometric changes in the
image: if we have two transformed versions of
the same image, features should be detected
in corresponding locations
Models of Image Change
Geometric
• Rotation
• Scale
• Affine
valid for: orthographic camera, locally planar object
Photometric
• Affine intensity change (I → a I + b)
Harris Detector: Invariance Properties
Rotation
Ellipse rotates but its shape (i.e. eigenvalues)
remains the same
Corner response R is invariant to image rotation
Harris Detector: Invariance Properties
Affine intensity change
9 Only derivatives are used =>
invariance to intensity shift I → I + b
9 Intensity scale: I → a I
R
x (image coordinate)
threshold
R
x (image coordinate)
Partially invariant to affine intensity change
Harris Detector: Invariance Properties
Scaling
All points will
be classified
as edges
Corner
Not invariant to scaling
Scale-invariant feature detection
• Goal: independently detect corresponding
regions in scaled versions of the same image
• Need scale selection mechanism for finding
characteristic region size that is covariant with
the image transformation
Scale-invariant features: Blobs
Recall: Edge detection
g
dx
d
f ∗
f
g
dx
d
Source: S. Seitz
Edge
Derivative
of Gaussian
Edge = maximum
of derivative
Edge detection, Take 2
g
dx
d
f 2
2
∗
f
g
dx
d
2
2
Edge
Second derivative
of Gaussian
(Laplacian)
Edge = zero crossing
of second derivative
Source: S. Seitz
From edges to blobs
• Edge = ripple
• Blob = superposition of two ripples
Spatial selection: the magnitude of the Laplacian
response will achieve a maximum at the center of
the blob, provided the scale of the Laplacian is
“matched” to the scale of the blob
maximum
Scale selection
• We want to find the characteristic scale of the
blob by convolving it with Laplacians at several
scales and looking for the maximum response
• However, Laplacian response decays as scale
increases:
Why does this happen?
increasing σ
original signal
(radius=8)
Scale normalization
• The response of a derivative of Gaussian
filter to a perfect step edge decreases as σ
increases
π
σ 2
1
Scale normalization
• The response of a derivative of Gaussian
filter to a perfect step edge decreases as σ
increases
• To keep response the same (scale-invariant),
must multiply Gaussian derivative by σ
• Laplacian is the second Gaussian derivative,
so it must be multiplied by σ2
Effect of scale normalization
Scale-normalized Laplacian response
Unnormalized Laplacian response
Original signal
maximum
Blob detection in 2D
Laplacian of Gaussian: Circularly symmetric
operator for blob detection in 2D
2
2
2
2
2
y
g
x
g
g
∂
∂
+
∂
∂
=
∇
Blob detection in 2D
Laplacian of Gaussian: Circularly symmetric
operator for blob detection in 2D
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛
∂
∂
+
∂
∂
=
∇ 2
2
2
2
2
2
norm
y
g
x
g
g σ
Scale-normalized:
Scale selection
• At what scale does the Laplacian achieve a
maximum response for a binary circle of
radius r?
r
image Laplacian
Scale selection
• The 2D Laplacian is given by
• Therefore, for a binary circle of radius r, the
Laplacian achieves a maximum at 2
/
r
=
σ
r
2
/
r
image
Laplacian
response
scale (σ)
2
2
2
2
/
)
(
2
2
2
)
2
( σ
σ y
x
e
y
x +
−
−
+ (up to scale)
Characteristic scale
• We define the characteristic scale as the
scale that produces peak of Laplacian
response
characteristic scale
T. Lindeberg (1998). "Feature detection with automatic scale selection."
International Journal of Computer Vision 30 (2): pp 77--116.
Scale-space blob detector
1. Convolve image with scale-normalized
Laplacian at several scales
2. Find maxima of squared Laplacian response
in scale-space
Scale-space blob detector: Example
Scale-space blob detector: Example
Scale-space blob detector: Example
Approximating the Laplacian with a difference of
Gaussians:
( )
2
( , , ) ( , , )
xx yy
L G x y G x y
σ σ σ
= +
( , , ) ( , , )
DoG G x y k G x y
σ σ
= −
(Laplacian)
(Difference of Gaussians)
Efficient implementation
Efficient implementation
David G. Lowe. "Distinctive image features from scale-invariant
keypoints.” IJCV 60 (2), pp. 91-110, 2004.
From scale invariance to affine invariance
Affine adaptation
Recall: R
R
I
I
I
I
I
I
y
x
w
M
y
y
x
y
x
x
y
x
⎥
⎦
⎤
⎢
⎣
⎡
=
⎥
⎥
⎦
⎤
⎢
⎢
⎣
⎡
= −
∑
2
1
1
2
2
, 0
0
)
,
(
λ
λ
direction of the
slowest change
direction of the
fastest change
(λmax)-1/2
(λmin)-1/2
We can visualize M as an ellipse with axis
lengths determined by the eigenvalues and
orientation determined by R
const
]
[ =
⎥
⎦
⎤
⎢
⎣
⎡
v
u
M
v
u
Ellipse equation:
Affine adaptation example
Scale-invariant regions (blobs)
Affine adaptation example
Affine-adapted blobs
Affine normalization
• The second moment ellipse can be viewed as
the “characteristic shape” of a region
• We can normalize the region by transforming
the ellipse into a unit circle
Orientation ambiguity
• There is no unique transformation from an
ellipse to a unit circle
• We can rotate or flip a unit circle, and it still stays a unit circle
Orientation ambiguity
• There is no unique transformation from an
ellipse to a unit circle
• We can rotate or flip a unit circle, and it still stays a unit circle
• So, to assign a unique orientation to keypoints:
• Create histogram of local gradient directions in the patch
• Assign canonical orientation at peak of smoothed histogram
0 2 π
Affine adaptation
• Problem: the second moment “window”
determined by weights w(x,y) must match the
characteristic shape of the region
• Solution: iterative approach
• Use a circular window to compute second moment matrix
• Perform affine adaptation to find an ellipse-shaped window
• Recompute second moment matrix using new window and
iterate
Iterative affine adaptation
K. Mikolajczyk and C. Schmid, Scale and Affine invariant interest
point detectors, IJCV 60(1):63-86, 2004.
http://www.robots.ox.ac.uk/~vgg/research/affine/
Summary: Feature extraction
Extract affine regions Normalize regions
Eliminate rotational
ambiguity
Compute appearance
descriptors
SIFT (Lowe ’04)
Invariance vs. covariance
Invariance:
• features(transform(image)) = features(image)
Covariance:
• features(transform(image)) = transform(features(image))
Covariant detection => invariant description
Next time: Fitting

More Related Content

What's hot

Edge linking hough transform
Edge linking hough transformEdge linking hough transform
Edge linking hough transform
aruna811496
 
Chapter 6 Image Processing: Image Enhancement
Chapter 6 Image Processing: Image EnhancementChapter 6 Image Processing: Image Enhancement
Chapter 6 Image Processing: Image Enhancement
Varun Ojha
 
Computer Vision - cameras
Computer Vision - camerasComputer Vision - cameras
Computer Vision - cameras
Wael Badawy
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
shabanam tamboli
 
The world of loss function
The world of loss functionThe world of loss function
The world of loss function
홍배 김
 
Wavelet based image fusion
Wavelet based image fusionWavelet based image fusion
Wavelet based image fusionUmed Paliwal
 
Fundamental steps in Digital Image Processing
Fundamental steps in Digital Image ProcessingFundamental steps in Digital Image Processing
Fundamental steps in Digital Image Processing
Shubham Jain
 
Image compression .
Image compression .Image compression .
Image compression .
Payal Vishwakarma
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
Inamul Hossain Imran
 
Computer Vision - RANSAC
Computer Vision - RANSACComputer Vision - RANSAC
Computer Vision - RANSAC
Wael Badawy
 
Chapter 4 Image Processing: Image Transformation
Chapter 4 Image Processing: Image TransformationChapter 4 Image Processing: Image Transformation
Chapter 4 Image Processing: Image Transformation
Varun Ojha
 
Computer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC AlgorithmComputer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC Algorithm
allyn joy calcaben
 
Image enhancement techniques
Image enhancement techniques Image enhancement techniques
Image enhancement techniques
Arshad khan
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domainAshish Kumar
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
muthu181188
 
Scale Invariant feature transform
Scale Invariant feature transformScale Invariant feature transform
Scale Invariant feature transform
Shanker Naik
 
Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.
SomitSamanto1
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
Karthika Ramachandran
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
asodariyabhavesh
 
Introduction to object detection
Introduction to object detectionIntroduction to object detection
Introduction to object detection
Brodmann17
 

What's hot (20)

Edge linking hough transform
Edge linking hough transformEdge linking hough transform
Edge linking hough transform
 
Chapter 6 Image Processing: Image Enhancement
Chapter 6 Image Processing: Image EnhancementChapter 6 Image Processing: Image Enhancement
Chapter 6 Image Processing: Image Enhancement
 
Computer Vision - cameras
Computer Vision - camerasComputer Vision - cameras
Computer Vision - cameras
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
The world of loss function
The world of loss functionThe world of loss function
The world of loss function
 
Wavelet based image fusion
Wavelet based image fusionWavelet based image fusion
Wavelet based image fusion
 
Fundamental steps in Digital Image Processing
Fundamental steps in Digital Image ProcessingFundamental steps in Digital Image Processing
Fundamental steps in Digital Image Processing
 
Image compression .
Image compression .Image compression .
Image compression .
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Computer Vision - RANSAC
Computer Vision - RANSACComputer Vision - RANSAC
Computer Vision - RANSAC
 
Chapter 4 Image Processing: Image Transformation
Chapter 4 Image Processing: Image TransformationChapter 4 Image Processing: Image Transformation
Chapter 4 Image Processing: Image Transformation
 
Computer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC AlgorithmComputer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC Algorithm
 
Image enhancement techniques
Image enhancement techniques Image enhancement techniques
Image enhancement techniques
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Scale Invariant feature transform
Scale Invariant feature transformScale Invariant feature transform
Scale Invariant feature transform
 
Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Introduction to object detection
Introduction to object detectionIntroduction to object detection
Introduction to object detection
 

Similar to Lec07 corner blob

Matching with Invariant Features
Matching with Invariant FeaturesMatching with Invariant Features
Matching with Invariant Featureszukun
 
Andrew Zisserman Talk - Part 1a
Andrew Zisserman Talk - Part 1aAndrew Zisserman Talk - Part 1a
Andrew Zisserman Talk - Part 1aAnton Konushin
 
image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptx
NaveenKumar5162
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
asodariyabhavesh
 
Computer Vision invariance
Computer Vision invarianceComputer Vision invariance
Computer Vision invariance
Wael Badawy
 
SURF - Speeded Up Robust Features
SURF - Speeded Up Robust FeaturesSURF - Speeded Up Robust Features
SURF - Speeded Up Robust Features
Marta Lopes
 
Harris corner detector and face recognition
Harris corner detector and face recognitionHarris corner detector and face recognition
Harris corner detector and face recognition
Shih Wei Huang
 
10 cie552 image_featuresii_corner
10 cie552 image_featuresii_corner10 cie552 image_featuresii_corner
10 cie552 image_featuresii_corner
Elsayed Hemayed
 
Computer Vision harris
Computer Vision harrisComputer Vision harris
Computer Vision harris
Wael Badawy
 
Iaetsd an enhanced circular detection technique rpsw using circular hough t...
Iaetsd an enhanced circular detection technique   rpsw using circular hough t...Iaetsd an enhanced circular detection technique   rpsw using circular hough t...
Iaetsd an enhanced circular detection technique rpsw using circular hough t...
Iaetsd Iaetsd
 
Iaetsd an enhanced circular detection technique rpsw using circular hough t...
Iaetsd an enhanced circular detection technique   rpsw using circular hough t...Iaetsd an enhanced circular detection technique   rpsw using circular hough t...
Iaetsd an enhanced circular detection technique rpsw using circular hough t...
Iaetsd Iaetsd
 
Fuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge DetectionFuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge Detection
Dawn Raider Gupta
 
Feature detection and matching
Feature detection and matchingFeature detection and matching
Feature detection and matching
Kuppusamy P
 
CV PPT.pptx
CV PPT.pptxCV PPT.pptx
CV PPT.pptx
sheraz7288
 
06 image features
06 image features06 image features
06 image features
ankit_ppt
 
Michal Erel's SIFT presentation
Michal Erel's SIFT presentationMichal Erel's SIFT presentation
Michal Erel's SIFT presentation
wolf
 
Scale Invariant Feature Tranform
Scale Invariant Feature TranformScale Invariant Feature Tranform
Scale Invariant Feature Tranform
Shanker Naik
 
Lecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingLecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matching
cairo university
 
Demo-Behaviour-of-the-Graph-of-a-Quadratic-Function.pptx
Demo-Behaviour-of-the-Graph-of-a-Quadratic-Function.pptxDemo-Behaviour-of-the-Graph-of-a-Quadratic-Function.pptx
Demo-Behaviour-of-the-Graph-of-a-Quadratic-Function.pptx
JennieDaluz4
 

Similar to Lec07 corner blob (20)

Matching with Invariant Features
Matching with Invariant FeaturesMatching with Invariant Features
Matching with Invariant Features
 
Andrew Zisserman Talk - Part 1a
Andrew Zisserman Talk - Part 1aAndrew Zisserman Talk - Part 1a
Andrew Zisserman Talk - Part 1a
 
image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptx
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Computer Vision invariance
Computer Vision invarianceComputer Vision invariance
Computer Vision invariance
 
SURF - Speeded Up Robust Features
SURF - Speeded Up Robust FeaturesSURF - Speeded Up Robust Features
SURF - Speeded Up Robust Features
 
Harris corner detector and face recognition
Harris corner detector and face recognitionHarris corner detector and face recognition
Harris corner detector and face recognition
 
10 cie552 image_featuresii_corner
10 cie552 image_featuresii_corner10 cie552 image_featuresii_corner
10 cie552 image_featuresii_corner
 
Computer Vision harris
Computer Vision harrisComputer Vision harris
Computer Vision harris
 
Iaetsd an enhanced circular detection technique rpsw using circular hough t...
Iaetsd an enhanced circular detection technique   rpsw using circular hough t...Iaetsd an enhanced circular detection technique   rpsw using circular hough t...
Iaetsd an enhanced circular detection technique rpsw using circular hough t...
 
Iaetsd an enhanced circular detection technique rpsw using circular hough t...
Iaetsd an enhanced circular detection technique   rpsw using circular hough t...Iaetsd an enhanced circular detection technique   rpsw using circular hough t...
Iaetsd an enhanced circular detection technique rpsw using circular hough t...
 
Fuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge DetectionFuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge Detection
 
Feature detection and matching
Feature detection and matchingFeature detection and matching
Feature detection and matching
 
Test
TestTest
Test
 
CV PPT.pptx
CV PPT.pptxCV PPT.pptx
CV PPT.pptx
 
06 image features
06 image features06 image features
06 image features
 
Michal Erel's SIFT presentation
Michal Erel's SIFT presentationMichal Erel's SIFT presentation
Michal Erel's SIFT presentation
 
Scale Invariant Feature Tranform
Scale Invariant Feature TranformScale Invariant Feature Tranform
Scale Invariant Feature Tranform
 
Lecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingLecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matching
 
Demo-Behaviour-of-the-Graph-of-a-Quadratic-Function.pptx
Demo-Behaviour-of-the-Graph-of-a-Quadratic-Function.pptxDemo-Behaviour-of-the-Graph-of-a-Quadratic-Function.pptx
Demo-Behaviour-of-the-Graph-of-a-Quadratic-Function.pptx
 

More from BaliThorat1

Lec15 sfm
Lec15 sfmLec15 sfm
Lec15 sfm
BaliThorat1
 
Lec14 multiview stereo
Lec14 multiview stereoLec14 multiview stereo
Lec14 multiview stereo
BaliThorat1
 
Lec13 stereo converted
Lec13 stereo convertedLec13 stereo converted
Lec13 stereo converted
BaliThorat1
 
Lec12 epipolar
Lec12 epipolarLec12 epipolar
Lec12 epipolar
BaliThorat1
 
Lec11 single view-converted
Lec11 single view-convertedLec11 single view-converted
Lec11 single view-converted
BaliThorat1
 
Lec10 alignment
Lec10 alignmentLec10 alignment
Lec10 alignment
BaliThorat1
 
Lec09 hough
Lec09 houghLec09 hough
Lec09 hough
BaliThorat1
 
Lec08 fitting
Lec08 fittingLec08 fitting
Lec08 fitting
BaliThorat1
 
8 operating system concept
8 operating system concept8 operating system concept
8 operating system concept
BaliThorat1
 
7 processor
7 processor7 processor
7 processor
BaliThorat1
 
6 input output devices
6 input output devices6 input output devices
6 input output devices
BaliThorat1
 
2 windows operating system
2 windows operating system2 windows operating system
2 windows operating system
BaliThorat1
 
5 computer memory
5 computer memory5 computer memory
5 computer memory
BaliThorat1
 
4 computer languages
4 computer languages4 computer languages
4 computer languages
BaliThorat1
 
1 fundamentals of computer
1 fundamentals of computer1 fundamentals of computer
1 fundamentals of computer
BaliThorat1
 
1 fundamentals of computer system
1 fundamentals of computer system1 fundamentals of computer system
1 fundamentals of computer system
BaliThorat1
 
Computer generation and classification
Computer generation and classificationComputer generation and classification
Computer generation and classification
BaliThorat1
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
BaliThorat1
 
6 cpu scheduling
6 cpu scheduling6 cpu scheduling
6 cpu scheduling
BaliThorat1
 
5 process synchronization
5 process synchronization5 process synchronization
5 process synchronization
BaliThorat1
 

More from BaliThorat1 (20)

Lec15 sfm
Lec15 sfmLec15 sfm
Lec15 sfm
 
Lec14 multiview stereo
Lec14 multiview stereoLec14 multiview stereo
Lec14 multiview stereo
 
Lec13 stereo converted
Lec13 stereo convertedLec13 stereo converted
Lec13 stereo converted
 
Lec12 epipolar
Lec12 epipolarLec12 epipolar
Lec12 epipolar
 
Lec11 single view-converted
Lec11 single view-convertedLec11 single view-converted
Lec11 single view-converted
 
Lec10 alignment
Lec10 alignmentLec10 alignment
Lec10 alignment
 
Lec09 hough
Lec09 houghLec09 hough
Lec09 hough
 
Lec08 fitting
Lec08 fittingLec08 fitting
Lec08 fitting
 
8 operating system concept
8 operating system concept8 operating system concept
8 operating system concept
 
7 processor
7 processor7 processor
7 processor
 
6 input output devices
6 input output devices6 input output devices
6 input output devices
 
2 windows operating system
2 windows operating system2 windows operating system
2 windows operating system
 
5 computer memory
5 computer memory5 computer memory
5 computer memory
 
4 computer languages
4 computer languages4 computer languages
4 computer languages
 
1 fundamentals of computer
1 fundamentals of computer1 fundamentals of computer
1 fundamentals of computer
 
1 fundamentals of computer system
1 fundamentals of computer system1 fundamentals of computer system
1 fundamentals of computer system
 
Computer generation and classification
Computer generation and classificationComputer generation and classification
Computer generation and classification
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
6 cpu scheduling
6 cpu scheduling6 cpu scheduling
6 cpu scheduling
 
5 process synchronization
5 process synchronization5 process synchronization
5 process synchronization
 

Recently uploaded

MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 

Recently uploaded (20)

MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 

Lec07 corner blob

  • 2. Why extract features? • Motivation: panorama stitching • We have two images – how do we combine them?
  • 3. Why extract features? • Motivation: panorama stitching • We have two images – how do we combine them? Step 1: extract features Step 2: match features
  • 4. Why extract features? • Motivation: panorama stitching • We have two images – how do we combine them? Step 1: extract features Step 2: match features Step 3: align images
  • 5. Characteristics of good features • Repeatability • The same feature can be found in several images despite geometric and photometric transformations • Saliency • Each feature has a distinctive description • Compactness and efficiency • Many fewer features than image pixels • Locality • A feature occupies a relatively small area of the image; robust to clutter and occlusion
  • 6. Applications Feature points are used for: • Motion tracking • Image alignment • 3D reconstruction • Object recognition • Indexing and database retrieval • Robot navigation
  • 7. Finding Corners • Key property: in the region around a corner, image gradient has two or more dominant directions • Corners are repeatable and distinctive C.Harris and M.Stephens. "A Combined Corner and Edge Detector.“ Proceedings of the 4th Alvey Vision Conference: pages 147--151.
  • 8. The Basic Idea • We should easily recognize the point by looking through a small window • Shifting a window in any direction should give a large change in intensity “edge”: no change along the edge direction “corner”: significant change in all directions “flat” region: no change in all directions Source: A. Efros
  • 9. Harris Detector: Mathematics [ ] 2 , ( , ) ( , ) ( , ) ( , ) x y E u v w x y I x u y v I x y = + + − ∑ Change in appearance for the shift [u,v]: Intensity Shifted intensity Window function or Window function w(x,y) = Gaussian 1 in window, 0 outside Source: R. Szeliski
  • 10. Harris Detector: Mathematics [ ] 2 , ( , ) ( , ) ( , ) ( , ) x y E u v w x y I x u y v I x y = + + − ∑ Change in appearance for the shift [u,v]: Second-order Taylor expansion of E(u,v) about (0,0) (bilinear approximation for small shifts): ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ + ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ + ≈ v u E E E E v u E E v u E v u E vv uv uv uu v u ) 0 , 0 ( ) 0 , 0 ( ) 0 , 0 ( ) 0 , 0 ( ] [ 2 1 ) 0 , 0 ( ) 0 , 0 ( ] [ ) 0 , 0 ( ) , (
  • 11. Harris Detector: Mathematics The bilinear approximation simplifies to 2 2 , ( , ) x x y x y x y y I I I M w x y I I I ⎡ ⎤ = ⎢ ⎥ ⎢ ⎥ ⎣ ⎦ ∑ where M is a 2×2 matrix computed from image derivatives: ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ ≈ v u M v u v u E ] [ ) , ( M
  • 12. The surface E(u,v) is locally approximated by a quadratic form. Let’s try to understand its shape. Interpreting the second moment matrix ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ ≈ v u M v u v u E ] [ ) , ( ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎣ ⎡ = ∑ 2 2 y y x y x x I I I I I I M
  • 13. ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ = ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎣ ⎡ = ∑ 2 1 2 2 0 0 λ λ y y x y x x I I I I I I M First, consider the axis-aligned case (gradients are either horizontal or vertical) If either λ is close to 0, then this is not a corner, so look for locations where both are large. Interpreting the second moment matrix
  • 14. General Case Since M is symmetric, we have R R M ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ = − 2 1 1 0 0 λ λ We can visualize M as an ellipse with axis lengths determined by the eigenvalues and orientation determined by R direction of the slowest change direction of the fastest change (λmax)-1/2 (λmin)-1/2 const ] [ = ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ v u M v u Ellipse equation:
  • 15. Visualization of second moment matrices
  • 16. Visualization of second moment matrices
  • 17. Interpreting the eigenvalues λ1 λ2 “Corner” λ1 and λ2 are large, λ1 ~ λ2; E increases in all directions λ1 and λ2 are small; E is almost constant in all directions “Edge” λ1 >> λ2 “Edge” λ2 >> λ1 “Flat” region Classification of image points using eigenvalues of M:
  • 18. Corner response function “Corner” R > 0 “Edge” R < 0 “Edge” R < 0 “Flat” region |R| small 2 2 1 2 1 2 ) ( ) ( trace ) det( λ λ α λ λ α + − = − = M M R α: constant (0.04 to 0.06)
  • 19. Harris detector: Steps 1. Compute Gaussian derivatives at each pixel 2. Compute second moment matrix M in a Gaussian window around each pixel 3. Compute corner response function R 4. Threshold R 5. Find local maxima of response function (nonmaximum suppression)
  • 21. Harris Detector: Steps Compute corner response R
  • 22. Harris Detector: Steps Find points with large corner response: R>threshold
  • 23. Harris Detector: Steps Take only the points of local maxima of R
  • 25. Invariance • We want features to be detected despite geometric or photometric changes in the image: if we have two transformed versions of the same image, features should be detected in corresponding locations
  • 26. Models of Image Change Geometric • Rotation • Scale • Affine valid for: orthographic camera, locally planar object Photometric • Affine intensity change (I → a I + b)
  • 27. Harris Detector: Invariance Properties Rotation Ellipse rotates but its shape (i.e. eigenvalues) remains the same Corner response R is invariant to image rotation
  • 28. Harris Detector: Invariance Properties Affine intensity change 9 Only derivatives are used => invariance to intensity shift I → I + b 9 Intensity scale: I → a I R x (image coordinate) threshold R x (image coordinate) Partially invariant to affine intensity change
  • 29. Harris Detector: Invariance Properties Scaling All points will be classified as edges Corner Not invariant to scaling
  • 30. Scale-invariant feature detection • Goal: independently detect corresponding regions in scaled versions of the same image • Need scale selection mechanism for finding characteristic region size that is covariant with the image transformation
  • 32. Recall: Edge detection g dx d f ∗ f g dx d Source: S. Seitz Edge Derivative of Gaussian Edge = maximum of derivative
  • 33. Edge detection, Take 2 g dx d f 2 2 ∗ f g dx d 2 2 Edge Second derivative of Gaussian (Laplacian) Edge = zero crossing of second derivative Source: S. Seitz
  • 34. From edges to blobs • Edge = ripple • Blob = superposition of two ripples Spatial selection: the magnitude of the Laplacian response will achieve a maximum at the center of the blob, provided the scale of the Laplacian is “matched” to the scale of the blob maximum
  • 35. Scale selection • We want to find the characteristic scale of the blob by convolving it with Laplacians at several scales and looking for the maximum response • However, Laplacian response decays as scale increases: Why does this happen? increasing σ original signal (radius=8)
  • 36. Scale normalization • The response of a derivative of Gaussian filter to a perfect step edge decreases as σ increases π σ 2 1
  • 37. Scale normalization • The response of a derivative of Gaussian filter to a perfect step edge decreases as σ increases • To keep response the same (scale-invariant), must multiply Gaussian derivative by σ • Laplacian is the second Gaussian derivative, so it must be multiplied by σ2
  • 38. Effect of scale normalization Scale-normalized Laplacian response Unnormalized Laplacian response Original signal maximum
  • 39. Blob detection in 2D Laplacian of Gaussian: Circularly symmetric operator for blob detection in 2D 2 2 2 2 2 y g x g g ∂ ∂ + ∂ ∂ = ∇
  • 40. Blob detection in 2D Laplacian of Gaussian: Circularly symmetric operator for blob detection in 2D ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ ∂ ∂ + ∂ ∂ = ∇ 2 2 2 2 2 2 norm y g x g g σ Scale-normalized:
  • 41. Scale selection • At what scale does the Laplacian achieve a maximum response for a binary circle of radius r? r image Laplacian
  • 42. Scale selection • The 2D Laplacian is given by • Therefore, for a binary circle of radius r, the Laplacian achieves a maximum at 2 / r = σ r 2 / r image Laplacian response scale (σ) 2 2 2 2 / ) ( 2 2 2 ) 2 ( σ σ y x e y x + − − + (up to scale)
  • 43. Characteristic scale • We define the characteristic scale as the scale that produces peak of Laplacian response characteristic scale T. Lindeberg (1998). "Feature detection with automatic scale selection." International Journal of Computer Vision 30 (2): pp 77--116.
  • 44. Scale-space blob detector 1. Convolve image with scale-normalized Laplacian at several scales 2. Find maxima of squared Laplacian response in scale-space
  • 48. Approximating the Laplacian with a difference of Gaussians: ( ) 2 ( , , ) ( , , ) xx yy L G x y G x y σ σ σ = + ( , , ) ( , , ) DoG G x y k G x y σ σ = − (Laplacian) (Difference of Gaussians) Efficient implementation
  • 49. Efficient implementation David G. Lowe. "Distinctive image features from scale-invariant keypoints.” IJCV 60 (2), pp. 91-110, 2004.
  • 50. From scale invariance to affine invariance
  • 51. Affine adaptation Recall: R R I I I I I I y x w M y y x y x x y x ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ = ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎣ ⎡ = − ∑ 2 1 1 2 2 , 0 0 ) , ( λ λ direction of the slowest change direction of the fastest change (λmax)-1/2 (λmin)-1/2 We can visualize M as an ellipse with axis lengths determined by the eigenvalues and orientation determined by R const ] [ = ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ v u M v u Ellipse equation:
  • 54. Affine normalization • The second moment ellipse can be viewed as the “characteristic shape” of a region • We can normalize the region by transforming the ellipse into a unit circle
  • 55. Orientation ambiguity • There is no unique transformation from an ellipse to a unit circle • We can rotate or flip a unit circle, and it still stays a unit circle
  • 56. Orientation ambiguity • There is no unique transformation from an ellipse to a unit circle • We can rotate or flip a unit circle, and it still stays a unit circle • So, to assign a unique orientation to keypoints: • Create histogram of local gradient directions in the patch • Assign canonical orientation at peak of smoothed histogram 0 2 π
  • 57. Affine adaptation • Problem: the second moment “window” determined by weights w(x,y) must match the characteristic shape of the region • Solution: iterative approach • Use a circular window to compute second moment matrix • Perform affine adaptation to find an ellipse-shaped window • Recompute second moment matrix using new window and iterate
  • 58. Iterative affine adaptation K. Mikolajczyk and C. Schmid, Scale and Affine invariant interest point detectors, IJCV 60(1):63-86, 2004. http://www.robots.ox.ac.uk/~vgg/research/affine/
  • 59. Summary: Feature extraction Extract affine regions Normalize regions Eliminate rotational ambiguity Compute appearance descriptors SIFT (Lowe ’04)
  • 60. Invariance vs. covariance Invariance: • features(transform(image)) = features(image) Covariance: • features(transform(image)) = transform(features(image)) Covariant detection => invariant description