Computational Geometry
Point Pattern Matching Kevin B¨
- ckler
Institut f¨ ur Theoretische Informatik Universit¨ at zu L¨ ubeck
17th January 2012
Kevin B¨
- ckler (TCS)
Computational Geometry 17th January 2012 1 / 44
Computational Geometry Point Pattern Matching Kevin B ockler - - PowerPoint PPT Presentation
Computational Geometry Point Pattern Matching Kevin B ockler Institut f ur Theoretische Informatik Universit at zu L ubeck 17 th January 2012 17 th January 2012 Kevin B ockler (TCS) Computational Geometry 1 / 44 Topics
Kevin B¨
Computational Geometry 17th January 2012 1 / 44
Kevin B¨
Computational Geometry 17th January 2012 2 / 44
Introduction
Kevin B¨
Computational Geometry 17th January 2012 3 / 44
Introduction Motivation
Kevin B¨
Computational Geometry 17th January 2012 4 / 44
Introduction Motivation
Kevin B¨
Computational Geometry 17th January 2012 5 / 44
Introduction Motivation
Kevin B¨
Computational Geometry 17th January 2012 6 / 44
Introduction Motivation
Kevin B¨
Computational Geometry 17th January 2012 7 / 44
Introduction Hausdorff-Distance
Kevin B¨
Computational Geometry 17th January 2012 8 / 44
Introduction Hausdorff-Distance
Kevin B¨
Computational Geometry 17th January 2012 9 / 44
Introduction Hausdorff-Distance
Kevin B¨
Computational Geometry 17th January 2012 10 / 44
Matching of Point Patterns
Kevin B¨
Computational Geometry 17th January 2012 11 / 44
Matching of Point Patterns Exact Matching
Kevin B¨
Computational Geometry 17th January 2012 12 / 44
Matching of Point Patterns Exact Matching
1 Compute the centroids cP , cQ 2 Sort all points of P, Q as pairs of (Φi, ri) and
3 A matching is found, if the sorted sequence of
4 If there is a matching, just compute the
Kevin B¨
Computational Geometry 17th January 2012 13 / 44
Matching of Point Patterns Exact Matching
1
2
dQ
Kevin B¨
Computational Geometry 17th January 2012 14 / 44
Matching of Point Patterns Approximated Matching
Kevin B¨
Computational Geometry 17th January 2012 15 / 44
Matching of Point Patterns Approximated Matching
Kevin B¨
Computational Geometry 17th January 2012 16 / 44
Matching of Point Patterns Approximated Matching
1 Procedure has to be done n4 times for all 4-tuples 2 For each procedure look at all 2-tuples’ curves and calculate intervals
Kevin B¨
Computational Geometry 17th January 2012 17 / 44
Matching of Point Patterns Approximated Matching
1
2
3
Kevin B¨
Computational Geometry 17th January 2012 18 / 44
Matching of Point Patterns Approximated Matching
1 For one diametrically opposing pair of points p1, p2 ∈ P: 2 Do a best match to each pair of points q1, q2 ∈ Q 3 Take the matching with the best resulting Hausdorff-distance
Kevin B¨
Computational Geometry 17th January 2012 19 / 44
Matching of Point Patterns Approximated Matching
1 For one diametrically opposing pair of points p1, p2 ∈ P: Kevin B¨
Computational Geometry 17th January 2012 19 / 44
Matching of Point Patterns Approximated Matching
1 For one diametrically opposing pair of points p1, p2 ∈ P: 2 Do a best match to each pair of points q1, q2 ∈ Q Kevin B¨
Computational Geometry 17th January 2012 19 / 44
Matching of Point Patterns Approximated Matching
1 For one diametrically opposing pair of points p1, p2 ∈ P: 2 Do a best match to each pair of points q1, q2 ∈ Q 3 Take the matching with the best resulting Hausdorff-distance
Kevin B¨
Computational Geometry 17th January 2012 19 / 44
Matching of Point Patterns Approximated Matching
1 For one diametrically opposing pair of points p1, p2 ∈ P: 2 Do a best match to each pair of points q1, q2 ∈ Q 3 Take the matching with the best resulting Hausdorff-distance
Kevin B¨
Computational Geometry 17th January 2012 19 / 44
Matching of Point Patterns Approximated Matching
1 For one diametrically opposing pair of points p1, p2 ∈ P: 2 Do a best match to each pair of points q1, q2 ∈ Q 3 Take the matching with the best resulting Hausdorff-distance
1 O(m) 2 O(n2) 3 O(n2m log(n))
Kevin B¨
Computational Geometry 17th January 2012 20 / 44
Matching of Point Patterns Pattern recognition
Kevin B¨
Computational Geometry 17th January 2012 21 / 44
Matching of Point Patterns Pattern recognition
1 Create reference frames for each pair a, b ∈ M 2 Create reference frames for each pair p, q ∈ S 3 Find one reference frame of M, whose points lie all in a
Kevin B¨
Computational Geometry 17th January 2012 22 / 44
Matching of Point Patterns Pattern recognition
Kevin B¨
Computational Geometry 17th January 2012 23 / 44
Matching of Point Patterns Pattern recognition
Kevin B¨
Computational Geometry 17th January 2012 24 / 44
Matching of Curves & Areas
Kevin B¨
Computational Geometry 17th January 2012 25 / 44
Matching of Curves & Areas
Kevin B¨
Computational Geometry 17th January 2012 26 / 44
Matching of Curves & Areas Approximated Matching
Kevin B¨
Computational Geometry 17th January 2012 27 / 44
Matching of Curves & Areas Approximated Matching
Kevin B¨
Computational Geometry 17th January 2012 27 / 44
Matching of Curves & Areas Approximated Matching
Kevin B¨
Computational Geometry 17th January 2012 28 / 44
Matching of Curves & Areas Approximated Matching
Kevin B¨
Computational Geometry 17th January 2012 29 / 44
Matching of Curves & Areas Approximated Matching
1 Rotate arrangement around the origin by θ ∈ (0, 2π) 2 Translate as before
Kevin B¨
Computational Geometry 17th January 2012 30 / 44
Matching of Curves & Areas Approximated Matching
Kevin B¨
Computational Geometry 17th January 2012 31 / 44
Matching of Curves & Areas Approximated Matching
Kevin B¨
Computational Geometry 17th January 2012 32 / 44
Matching of Curves & Areas Approximated Matching
π ≈ 1.27 (2D)
Kevin B¨
Computational Geometry 17th January 2012 33 / 44
Matching of Curves & Areas Approximated Matching
1 Rotate lower-left Reference Point around A 2 Keep orthogonal tangents to A 3 Take the average over all those rotated points
Kevin B¨
Computational Geometry 17th January 2012 34 / 44
Matching of Curves & Areas Better distance for shapes
Kevin B¨
Computational Geometry 17th January 2012 35 / 44
Matching of Curves & Areas Better distance for shapes
Kevin B¨
Computational Geometry 17th January 2012 36 / 44
Matching of Curves & Areas Better distance for shapes
Kevin B¨
Computational Geometry 17th January 2012 37 / 44
Shape Interpolation
Kevin B¨
Computational Geometry 17th January 2012 38 / 44
Shape Interpolation
1
2
3
Kevin B¨
Computational Geometry 17th January 2012 39 / 44
Shape Interpolation Polygonal chain matching
1 Construct a grid of P × Q 2 Monotone walkthrough the grid represents matching Kevin B¨
Computational Geometry 17th January 2012 40 / 44
Shape Interpolation Polygonal chain matching
1 Construct a grid of P × Q 2 Monotone walkthrough the grid represents matching Kevin B¨
Computational Geometry 17th January 2012 40 / 44
Shape Interpolation Polygonal chain matching
1 Construct a grid of P × Q 2 Monotone walkthrough the grid represents matching Kevin B¨
Computational Geometry 17th January 2012 40 / 44
Shape Interpolation Polygonal chain matching
Kevin B¨
Computational Geometry 17th January 2012 41 / 44
Shape Interpolation Difficulties
Kevin B¨
Computational Geometry 17th January 2012 42 / 44
Conclusion
Kevin B¨
Computational Geometry 17th January 2012 43 / 44
Conclusion
Kevin B¨
Computational Geometry 17th January 2012 44 / 44