Combining Appearance and Topology for Wide Baseline...

42
Combining Appearance and Topology for Wide Baseline Matching Dennis Tell and Stefan Carlsson Presented by: Josh Wills

Transcript of Combining Appearance and Topology for Wide Baseline...

Page 1: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Combining Appearanceand Topology for WideBaseline Matching

Dennis Tell and Stefan Carlsson

Presented by: Josh Wills

Page 2: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Image Point Correspondences

n Critical foundation for many vision applications® 3-D reconstruction, object detection/recognition, etc

n Trivial problem for the human visual system

n Extremely difficult problem computationally

Page 3: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Correspondences

n Correspondences are pairsof points (one from theleft image and one fromthe right image) thatcorrespond to the samereal world point.

n They are oftenrepresented by point-linepairs in a set of images.

Page 4: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Difficulties in matching

n Many matches are only available via higher levelreasoning® This perceived match “disappears” locally

n Matches may rely on previous knowledge of objects® We understand what a given object would look like from

varying viewpoints and lighting conditions

Page 5: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Previous Work

n Invariant descriptors® Schmid and Mohr - Affine invariant descriptors

® Belongie - shape contexts

n Intensity profiles® Tell and Carlsson

n Robust model estimation® Torr - RANSAC

Page 6: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Presentation Outline

n Common approach to matching

n Intensity Profiles

n Topological Constraints

n Results

n Discussion

Page 7: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Common approach to matching

n Locate interest points® Harris corners

n Attach a descriptor to each point and compute a measureof similarity for each pair of points® Normalized correlation on intensity

n Choose candidate matches® Maximum similarity or Hungarian

n Validate matches using robust estimation® RANSAC for homography or fundamental matrix

Page 8: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Interest Points

n Many of the pixels in animage are redundant.

n Computation is expensiveso we want a set of pointsthat are “interesting”

n The types of points we arelooking for are thosecentered in rank 1 or 2neighborhoods

Page 9: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Harris Corner Detector

n For each point, compute “corner-ness” for an image patchcentered on that point:

n Where k is routinely 0.04n Keep all points above some threshold

® When trace is large there is an edge (rank 1)

® When determinant is large there is an edge or corner (rank 1 or 2)

Page 10: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Point Descriptors

n Local v. Relational

n Local point descriptors attempt to capture the appearanceof a small patch of the image centered on a given point.® Gray values

® Filter responses

n With relational point descriptors, a point is characterizedby its relation to the other points in the scene.® Shape contexts

Page 11: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Gray value point descriptors

n The gray values in a smallneighborhood centered on apoint may be strung out as afeature vector for that point.

n These vectors may becompared using SSD or crosscorrelations

n These descriptors allow forvery efficient comparison ofpoints, but have littleinvariance to changes betweenthe two images

Page 12: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Filter-based point descriptors

n A set of oriented filters areapplied to each image and theresponse of each filter at agiven point results in anothertype of feature vector.

n This allows for moreinvariance to absolute intensityand a degree of rotationalinvariance is possible bycyclically rotating the featurevectors.

Page 13: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Shape contexts

n The points are classified bytheir positional relation to theother points in the image.

n Log polar histograms arecentered on each point and thechi-squared score for each pairis computed.

n There is a degree ofaffine/rotational invariance inusing this point descriptor

Page 14: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Validating Point Matches

n Due to the difference of appearance in the two images andthe limitations of the point matching approaches,mismatches are all but guaranteed.

n One method for sifting out these mismatches is to fit animage relation model to the data and see which matchesare consistent with the estimated model.

n Robust estimation is used to stifle the effect of outliers onthe model estimation.

Page 15: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Robust Estimation

n What set of modelparameters best“explains” the data?

n Here, what a and b valuesin the equation for a lineresult in the best fit to thispoint set which is knownhave outliers?

Page 16: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Least Squares

n Try to minimize thesquared error for each ofthe points in the point set

n Very fast and efficient

n Highly influenced byoutliers - notice the effectof the outlier on the right

Page 17: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

RANSAC - Random Sample Consensus

n Find the parameters that resultsin the largest number of“inliers” - points that fit themodel

n Repeatedly choose samples ofthe minimal size, recover theappropriate model, and countinliers

n P.H.S. Torr brought this tocomputer vision

Page 18: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Estimation for image relations

n This same approach isapplied to the estimationof the image relation.

n Here we seen theapplication of ahomography that wascomputed via RANSAC.

n The outliers are shown inred.

Page 19: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Homography

n Circular order-preservingtransformation® Similarity: angle

preserving

® Affine: parallel-linepreserving

n Also the space oftransformations that arepossible with perspectiveeffects on a plane

Page 20: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Description of the Approach

n Extract interest points with Harris corner detector

n For each intra-image pair of points, extract the intensity profilejoining them

n Compare each inter-image pair of profiles’ Fourier feature vectorsand add votes for the endpoints of similar profiles

n Perform String matching to ensure one-to-one matching and topreserve cyclic order

n Using RANSAC, eliminate more outliers and find homographyand/or fundamental matrix

Page 21: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Planar Assumption

n For intensity profiles to bereliable and for thepreservation of cyclicorder, image regions mustbe related by ahomography.

n This requires that theregions correspond toreal-world planar objects.

Page 22: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Intensity Profiles

n Invariant to affinetransformations if the profile ison a planar surface.

n For many perspectivetransformations, there is anaffine approximation that isclose for a given 1D line.

n The only difference will be achange in scale an possiblysome high frequency variation.

Page 23: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Fourier Feature Vectors

n These features are chosen primarily for their scaleinvariance and invariance to high-frequency noise.

n Choose N for N/2 sin and cos basis functions

Page 24: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Intensity Profile Matching

n Matches constitute votes for the correspondences of thevertices of the intensity profiles

Page 25: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Drawbacks of the OriginalMethodn Biased voting - points with “common” intensity

profiles may receive superfluous votes forcorrespondences in the vote matrix

n Only local information - matches that areambiguous using only local information may beunique when considering relational data.

Page 26: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Biased voting

n The point p would have 4 votes for a match with itself,but it would have 6 votes for a match with q.

n This can be solved by enforcing a one-to-one constrainton the votes.

Page 27: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Local and Topological features

n Another drawback of the original paper is that it doesn’t use some ofthe semi-local information to disambiguate the matches

n The cyclic order of correct matches is preserved for planar regions.

Page 28: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

String Matching

n Here we can see the intensity profiles that are coming out of thepoints p and q

n Each of these profiles can represent a letter in a string and themaximum number of matching profiles that preserve cyclic ordercan be formulated as a maximum substring matching problem.

Page 29: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

String Matching Algorithm

Page 30: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Cyclic String Matching

n We don’t know the startingpoints of the strings, which caneffect the length of the matchthat is found.

n An algorithm by Gregor andThomason extends thestandard string matchingapproach to cyclic stringmatching with a running timeof O(mn logn)

Page 31: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Results of String Matching

n The string matching step significantly reduced the noisein the vote matrix by disambiguating many matches

n The combination of local and semi-local featurecomparison results in more discriminative power

Page 32: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Results

149 matches

47 matches

Page 33: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

More Results

109 matches

29 matches

Page 34: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Discussion

n Contributions® Intensity profiles

® Topological constraints

n Limitation® Planar assumption

n Possible extensions/applications® Pairing with an existing method

® Tracking for image mosaicing

Page 35: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Intensity Profiles

n Invariant to affine transformations and “tolerant” toperspective transformations on planar surfaces

n Very good descriptors for wide-baseline pairs since oftenthe image change is so severe that most other methodswill not find a match

n However, they are unstable if the localization of the endpoints is not exact. A slight change in the vertices maycompletely change the content of the intensity profile

Page 36: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Topological Constraints

n Provide more discriminative power and lead todisambiguated matches.

n Require that interest points are detected on bothimages - something that is not solved® Schmid and Mohr show that will no interest point

detector (short of one that chooses all pixels) is

guaranteed to find both projections of a point in the

real world.

Page 37: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Planar assumption

n This may be very limiting. Many scenes contain little orno planar regions.

n Parallax and occlusion are common to wide-baselinestereo and both will break intensity profile matching.

n This method will only allow the estimation of afundamental matrix if there are two planes that arepresent - a pointset on a plane will lead to a degeneratesolution for the matrix.

Page 38: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Pairing with existing systems

n If one out of the seven points used to estimate thefundamental matrix is not coplanar with the rest of thepoints, then a solution is possible.

n The matches found with this method could be combinedwith the matches from another method (say, Jones andMalik).

n Since the sample space of RANSAC is correspondences,it doesn’t matter how those correspondences weregenerated and there is no difficulty in the integration ofmultiple sets.

Page 39: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Tracking/Image Mosaicing

n Most of the scene appears roughly planar since there is a largedistance from the camera to the points in the scene.

n This may require a slight change in the comparison of theintensity profiles since there will be occlusion from the vehicle.

Page 40: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Sentence to walk away with

n By combining intensity profile matching andtopological constraints, Tell and Carlssonbalanced the opposing forces of invariance anddiscriminative power to achieve good results inpoint matching for planar regions.

Page 41: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

References

n Dennis Tell and Stefan Carlsson. Wide baseline point matching using affineinvariants computed from intensity profiles. In ECCV, vol 1, 814-828, 2000.

n Torr, P. H. S. and Murray, D. W. The Development and Comparison of RobustMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300, 1997.

n C. Schmid, R. Mohr and C. Bauckhage. Evaluation of Interest Point Detectors. InIJCV, 37(2), 151-172, 2000.

n David Jones and Jitendra Malik. "A computational framework for determiningstereo correspondence from a set of linear spatial filters" In ECCV, 1992, 395-410,1992

n Dennis Tell. Wide Baseline Matching with Applications to Visual Servoing.TRITA-NA-0205, ISSN 0348-2952, ISBN 91-7283-254-1, PhD Thesis, Dept. ofNumerical Analysis and Computer Science, KTH, Stockholm, Sweden 2002.

Page 42: Combining Appearance and Topology for Wide Baseline ...cseweb.ucsd.edu/classes/fa02/cse252c/tellCarlssonShow.pdfMethods for Estimating the Fundamental Matrix. In IJCV pages 271-300,

Acknowledgements

n Ben Ochoa - for providing the mosaicing videos

n The music of Sameer Agarwal