Docsity

Point Matching: Feature Extraction and Geometric Transformations in Computer Vision, Study notes of Computer Science

Toggle sidebar
bg1
Point Matching
CS 510
Lecture #31
April 20th, 2009
Review: Canny Edges
• Created by a three-step algorithm:
1. Convolutions (Gaussian & Sobel)
2. Directional non-maximal suppression
3. Two-threshold hysteresis filtering
•Creates edges that are
•Thin
•Linked
• May correspond to scene structure
Review: Harris Corners
zCreate 2x2 covariance
matrix of local edge
orientations
zSolve for the two
eigenvalues
zIf the smaller
eigenvalue is larger
than a threshold, then
the center of the
window is a corner
Why Match Features?
zTo ignore irrelevant data
–Backgrounds
–Meaningless variation among instances
zE.g. color of car, whether pickup is covered
–Variations in illumination
zTo accommodate changes in viewpoint
–Insensitive to classes of transformations
zDepends on the feature extraction and matching techniques
zDefining the class of transformation is critical to the succ ess of
any feature matching system
zUnderlying trade-off:
–Higher level features →less data, simpler combinatorics
–Higher level features →greater chance for error in feature
extraction
Simple Example:
Matching Points
zEdges & Corners can both be viewed as interesting
2D points in an image
zIt might be useful to match a set of edges/corners to
points in an object model
–Creates a correspondence problem: which feature in image
A matches which feature in image B?
zSimilar - but different - from correlating edge maps
Feature Matching
zCorrespondence problems
–One to one? One to many? Many to many?
zGeometric Transformations
–Similarity? Affine? Perspective?
z“Noise” : missing and extraneous features
zMatch metrics
–For individual feature pairs
zCan any point match any point?
–For feature sets
zGeometric error measures
pf3
pf4

Partial preview of the text

Download Point Matching: Feature Extraction and Geometric Transformations in Computer Vision and more Study notes Computer Science in PDF only on Docsity!

Point Matching

CS 510

Lecture

April 20 th^ , 2009

Review: Canny Edges

  • Created by a three-step algorithm:
    1. Convolutions (Gaussian & Sobel)
    2. Directional non-maximal suppression
    3. Two-threshold hysteresis filtering
  • Creates edges that are
  • Thin
  • Linked
  • May correspond to scene structure

Review: Harris Corners

z Create 2x2 covariance

matrix of local edge

orientations

z Solve for the two

eigenvalues

z If the smaller

eigenvalue is larger

than a threshold, then

the center of the

window is a corner

Why Match Features?

z To ignore irrelevant data

  • Backgrounds
  • Meaningless variation among instances z E.g. color of car, whether pickup is covered
  • Variations in illumination

z To accommodate changes in viewpoint

  • Insensitive to classes of transformations z Depends on the feature extraction and matching techniques z Defining the class of transformation is critical to the success of any feature matching system

z Underlying trade-off:

  • Higher level features →less data, simpler combinatorics
  • Higher level features → greater chance for error in feature extraction

Simple Example:

Matching Points

z Edges & Corners can both be viewed as interesting

2D points in an image

z It might be useful to match a set of edges/corners to

points in an object model

  • Creates a correspondence problem : which feature in image A matches which feature in image B?

z Similar - but different - from correlating edge maps

Feature Matching

z Correspondence problems

  • One to one? One to many? Many to many?

z Geometric Transformations

  • Similarity? Affine? Perspective?

z “Noise” : missing and extraneous features

z Match metrics

  • For individual feature pairs z Can any point match any point?
  • For feature sets z Geometric error measures

Point Matching Examples - Simple

Example 1 Example 2

The Directed Hausdorff Metric

A distance measure between two sets of points

z Given two sets of points:

z The Hausdorff metric is:

z In other words, it is the maximum distance from any

point in A to its nearest point in B

  • What class of transformations does this support?

A = { a 1 , a 2 ,K, a m }, B = { b 1 , b 2 ,K, bn }

h ( A , B ) = MAX

a ∈ A

MIN

b ∈ B

a − b

Simplified Hausdorff Matching

z To match a set of points A to a set of points in an

image B:

  • for every pixel in B, compute distance to nearest edge/corner (call this image D).
  • Make binary template from points in A
  • Slide template over image D: z compute only at points in A z find max value in D under point in A

z How does this compare to cross-correlation?

z What transformations does it admit?

Hausdorff (cont.)

z Note: the directed Hausdorff metric is non-

symmetric.

  • Good for comparing models to images
  • Good for comparing subimages to images
  • Less good for comparing two images

z A symmetric version is defined as:

H A ( , B ) = MAX h A ( ( , B ), h B ( , A ))

Robust Hausdorff

z The Hausdorff metric is highly sensitive to noise

  • One “outlier” point in set A will ruin the match
  • A more robust version is:
  • Typical values of K are 10%, 20% or 50% of m.

h A ( , B ) = Kth

a ∈ A

MIN

b ∈ B

a − b

Combinatorial Point Matching

z What if we want to match points under arbitrary

8-DOF transformations? (We couldn’t do this

with images!)

  • Four point correspondences are enough to define an 8-DOF “perspective” transformation
  • General idea: z Hypothesize four point correspondences z Solve for transformation z Evaluate hypothesis by the Hausdorff metric of the transformed data

a.k.a. geometric hashing

Notes

z The example shown was an affine transformation, but it would have worked just as well for a perspective transformation

z Some transformations can be dismissed a-priori

  • Example: if points at infinity (in A) map to the image (in B) z gx + hy + 1 = 0 is true for some x, y in image
  • If transformation exceeds domain criteria z For example, are reflections allowed? z If distance image DB is computed, checking a set of point correspondences is very fast

z Combined corner and edge matching

  • Draw correspondences from corners in A and B
  • Measure match quality using edge to edge and corner to corner distances

Notes (II)

z Assume point detector never misses a true point, but

produces (perhaps many) spurious points

z Overall cost for model → data point matching:

  • O(N^5 ) for perspective transformations z O(N^4 )combinations, times O(N) work to verify each
  • O(N^4 ) for affine transformations
  • O(N^3 ) for similarity transformations

z Cost of data → data point matching is more (why?)

z Cost of model → data matching is more is points may

be missed (why?)