计算机视觉特征检测和匹配

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

direction of the slowest change
Selecting Good Features
1 and 2 are large
Selecting Good Features
large 1, small 2
Selecting Good Features
small 1, small 2
I x2 M w( x, y ) x, y IxI y
IxI y 2 Iy
M is also called “structure tensor”
Harris Detector: Mathematics
Intensity change in shifting window: eigenvalue analysis
Matching with Features
•Detect feature points in both images
Matching with Features
•Detect feature points in both images
•Find corresponding pairs
Matching with Features
x, y
2
Window function
Shifted intensity
Intensity
Window function w(x,y) = 1 in window, 0 outside
or Gaussian
Taylor series approx to shifted image
Harris Detector: Mathematics
Ideal feature detector
• Would always find the same point on an object, regardless of changes to the image. • Ie, insensitive to changes in:
– – – – Scale Lighting Perspective imaging Partial occlusion
directions
1 and 2 are small; E is almost
constant in all directions
“Flat” region
“Edge” 1 >> 2 1
Harris Detector: Mathematics
Measure of corner response:
Harris Detector: Mathematics
Classification of image points using eigenvalues of M: 2 “Edge” 2 >> 1
“Corner” 1 and 2 are large, 1 ~ 2; E increases in all
no chance to match!
We need a repeatable detector
Matching with Features
• Problem 2:
– For each point correctly recognize the corresponding one
?
We need a reliable and distinctive descriptor
Expanding I(x,y) in a Taylor series expansion, we have, for small shifts [u,v], a bilinear approximation:
E (u, v) u, v
u M v
where M is a 22 matrix computed from image derivatives:
•Detect feature points in both images
•Find corresponding pairs
•Use these pairs to align images
Matching with Features
• Problem 1:
– Detect the same point independently in both images
More motivation…
• Feature points are used also for:
– – – – – – – Image alignment (homography, fundamental matrix) 3D reconstruction Motion tracking Object recognition Indexing and database retrieval Robot navigation … other
E (u, v) u, v
u M v
1, 2 – eigenvalues of M
direction of the fastest change
Ellipse E(u,v) = const
Iso-intensity contour of E(u,v) (max)-1/2 (min)-1/2
We need better features, better representations, …
Categories
Find a bottle:
Instances
Find these two objects
Can’t do unless you do not care about few errors…
Bad feature Left eye view Good feature Right eye view
– Does not deform too much over time
Contents
• Harris Corner Detector – Overview – Analysis • Detectors – Rotation invariant – Scale invariant – Affine invariant • Descriptors – Rotation invariant – Scale invariant – Affine invariant
Harris Detector: Mathematics
Window-averaged change of intensity induced by shifting the image data by [u,v]:
E (u , v) w( x, y ) I ( x u , y v) I ( x, y )
E (u, v) u, v u M v
• Describe a point in terms of eigenvalues of M: measure of corner response
R 12 k 1 2
2百度文库
• A good (corner) point should have a large intensity change in all directions, i.e. R should be large positive
Harris Detector: Workflow
Harris Detector: Workflow
Compute corner response R
Harris Detector: Workflow
Find points with large corner response: R>threshold
Harris Detector: Workflow
Take only the points of local maxima of R
Harris Detector: Workflow
Harris Detector: Summary
• Average intensity change in direction [u,v] can be expressed as a bilinear form:
• |R| is small for a flat region
R>0
“Flat” |R| small
“Edge” R<0 1
Harris Detector
• The Algorithm:
– Find points with large corner response function R (R > threshold) – Take the points of local maxima of R
Selecting Good Features
• What’s a ―good feature‖?
– Satisfies brightness constancy—looks the same in both images – Has sufficient texture variation – Does not have too much texture variation – Corresponds to a ―real‖ surface patch—see below:
R det M k trace M
2
This expression does not requires computing the eigenvalues.
det M 12 trace M 1 2
(k – empirical constant, k = 0.04-0.06)
6.869 Advances in Computer Vision
http://people.csail.mit.edu/torralba/courses/6.869/6.869. computervision.htm
Spring 2010
Lecture 10 Invariant features
1
Can nail it
5
Building a Panorama
M. Brown and D. G. Lowe. Recognising Panoramas. ICCV
How do we build a panorama?
• We need to match (align) images • Global methods sensitive to occlusion, lighting, parallax effects. So look for local features that match well. • How would you do it by eye?
Harris Detector: Basic Idea
“flat” region: no change as shift window in all directions
“edge”: no change as shift window along the edge direction
“corner”: significant change as shift window in all directions
An introductory example: Harris corner detector
C.Harris, M.Stephens. “A Combined Corner and Edge Detector”. 1988
The Basic Idea
• We should easily localize the point by looking through a small window • Shifting a window in any direction should give a large change in intensity
Harris Detector: Mathematics
2
• R depends only on eigenvalues of M • R is large for a corner
“Edge”
R<0
“Corner”
• R is negative with large magnitude for an edge
相关文档
最新文档