1 / 50

2D Shape Matching (and Object Recognition)

2D Shape Matching (and Object Recognition). Raghuraman Gopalan Center for Automation Research University of Maryland, College Park. Outline. What is a shape? Part 1: Matching/ Recognition Shape contexts [Belongie, Malik, Puzicha – TPAMI ’02]

zwi
Download Presentation

2D Shape Matching (and Object Recognition)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 2D Shape Matching (and Object Recognition) Raghuraman Gopalan Center for Automation Research University of Maryland, College Park

  2. Outline • What is a shape? • Part 1: Matching/ Recognition • Shape contexts [Belongie, Malik, Puzicha – TPAMI ’02] • Indexing [Biswas, Aggarwal, Chellappa – TMM ’10] • Part 2: General discussion

  3. Shape Some slides were adapted from Prof. Grauman’s course at Texas Austin, and Prof. Malik’s presentation at MIT

  4. Where have we encountered shape before? Edges/ Contours Silhouettes

  5. A definition of shape • Defn 1: A set of points that collectively represent the object • We are interested in their location information alone!! • Defn 2: Mathematically, shape is an equivalence class under a group of transformations • Given a set of points X representing an object O, and a set of transformations T, shape S={t(X)| t\in T} • Issues? – Kendall ‘84

  6. Applications of Shapes Recognition, detection Fig from Opelt et al. Analysis of anatomical structures Figure from Grimson & Golland Morphology http://usuarios.lycos.es/lawebdelosfosiles/i Characteristic feature Fig from Belongie et al. Pose

  7. Part 1: 2D shape matching

  8. Recognition using shapes – (eg. – model fitting) [Fig from Marszalek & Schmid, 2007] For example, the model could be a line, a circle, or an arbitrary shape.

  9. Example: Deformable contours Visual Dynamics Group, Dept. Engineering Science, University of Oxford. Applications: Traffic monitoring Human-computer interaction Animation Surveillance Computer Assisted Diagnosis in medical imaging

  10. Issues at stake • Representation • Holistic • Part-based • Matching • How to compute distance between shapes? • Challenges in recognition • Information loss in 3D to 2D projection • Articulations • Occlusion…. Invariance??? • Any other issue?

  11. Representation [Veltkamp ’00] • Holistic • Moments • Fourier descriptors • Computational geometry • Curvature scale-space

  12. Part-based • medial axis transform – shock graphs

  13. Matching: How to compare shapes?

  14. Discussion for a set of points • Hausdorff distance

  15. Chamfer distance • Average distance to nearest feature • T: template shape a set of points • I: image to search a set of points • dI(t): min distance for point t to some point in I • Average distance to nearest feature • T: template shape a set of points • I: image to search a set of points • dI(t): min distance for point t to some point in I

  16. Chamfer distance How is the measure different than just filtering with a mask having the shape points? Edge image

  17. Distance Transform 1 0 1 2 3 4 3 2 1 0 1 2 3 3 2 1 1 0 1 2 3 2 1 0 1 0 0 1 2 1 0 1 2 1 1 2 1 0 1 2 3 2 2 2 1 0 1 2 4 3 3 2 1 0 1 2 5 4 4 3 2 1 0 1 Distance Transform Image features (2D) Distance Transform is a function that for each image pixel p assigns a non-negative number corresponding to distance from p to the nearest feature in the image I Features could be edge points, foreground points,… Source: Yuri Boykov

  18. Distance transform edges original distance transform Value at (x,y) tells how far that position is from the nearest edge point (or other binary mage structure) >> help bwdist

  19. Chamfer distance • Average distance to nearest feature Edge image Distance transform image

  20. Chamfer distance Edge image Distance transform image Fig from D. Gavrila, DAGM 1999

  21. image gradients are large only directly on the boundary A limitation of active contours • External energy: snake does not really “see” object boundaries in the image unless it gets very close to it.

  22. What limitations might we have using only edge points to represent a shape? • How descriptive is a point?

  23. Comparing shapes What points on these two sampled contours are most similar? How do you know?

  24. Shape context descriptor [Belongie et al ’02] Count the number of points inside each bin, e.g.: Count = 4 ... Count = 10 Compact representation of distribution of points relative to each point Shape context slides from Belongie et al.

  25. Shape context descriptor

  26. Comparing shape contexts Compute matching costs using Chi Squared distance: Recover correspondences by solving for least cost assignment, using costs Cij (Then use a deformable template match, given the correspondences.)

  27. Invariance/ Robustness • Translation • Scaling • Rotation • Modeling transformations – thin plate splines (TPS) • Generalization of cubic splines to 2D • Matching cost = f(Shape context distances, bending energy of thin plate splines) • Can add appearance information too • Outliers?

  28. An example of shape context-based matching

  29. Some retrieval results

  30. Efficient matching of shape contexts [Mori et al ’05] • Fast-pruning • randomly select a set of points • Detailed matching

  31. Efficient matching of shape contexts [Mori et al ’05] – contd’ • Vector quantization

  32. Are things clear so far?

  33. Detour - Articulation [Ling, Jacobs ’07]

  34. Inner distance vs. (2D) geodesic distance

  35. The problem of junctions • Is inner distance truly invariant to articulations?

  36. Non-planar articulations? [Gopalan, Turaga, Chellappa ’10]

  37. Indexing approach to shape matching [Biswas et al ’10] • Why?

  38. Indexing - framework Pair-wise Features: Inner distance, Contour length, relative angles etc.

  39. Part 2 – Shapes as equivalence classes • Kendall’s shape space • Shape is all the geometric information that remains when the location, scale and rotation effects are filtered out from the object

  40. Pre-shape • Kendall’s Statistical Shape Theory used for the characterization of shape. • Pre-shape accounts for location and scale invariance alone. • k landmark points (X:k\times 2) • Translational Invariance: Subtract mean • Scale Invariance : Normalize the scale Some slides were adapted from Dr. Veeraraghavan’s website

  41. Feature extraction • Silhoutte Landmarks Centered Landmarks Pre-shape vector

  42. [Veeraraghavan, Roy-Chowdhury, Chellappa ’05] Shape lies on a spherical manifold. Shape distance must incorporate the non-Euclidean nature of the shape space.

  43. Affine subspaces [Turaga, Veeraraghavan, Chellappa ’08]

  44. Other examples • Space of Blur • Modeling group trajectories etc..

  45. Conclusion • Shape as a set of points configuring the geometry of the object • Representation, matching, recognition • Shape contexts, Indexing, Articulation • Shape as equivalence class under a group of transformations

  46. Announcements • HW 5 will be posted today; • On Stereo, and Shape matching • Due Nov. 30 (Tuesday after Thanksgiving) • Turn in HW 4 • Midterms solutions by weekend

  47. Questions?

More Related