![Page 1: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/1.jpg)
Geodesic Fréchet Distance Inside a Simple PolygonAtlas F. Cook IV & Carola Wenk
Proceedings of the 25th International Symposium onTheoretical Aspects of Computer Science (STACS), Bordeaux, France, 2008 (Acceptance Rate: 27%)
![Page 2: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/2.jpg)
2
Overview
Fréchet Distance Importance Intuition
Geodesic Fréchet Distance Decision Problem Optimization Problem
Red-Blue Intersections Conclusion References Questions
![Page 3: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/3.jpg)
3
Importance of Fréchet Distance
♫ It’s a beautiful day in the neighborhood…
![Page 4: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/4.jpg)
4
Importance of Fréchet Distance
Distinguishing your neighbors: Nose Hairstyles
![Page 5: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/5.jpg)
5
Fréchet Distance
Fréchet Distance Measures similarity of continuous shapes
Similar Different
![Page 6: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/6.jpg)
6
Fréchet Distance
Comparison of geometric shapes Computer Vision Robotics Medical Imaging
Half-Full
Half-Empty
Same glass!
![Page 7: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/7.jpg)
7
Fréchet Distance
Fréchet Distance Illustration: Walk the dog
![Page 8: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/8.jpg)
8
Fréchet Distance
Fréchet Distance Illustration:
![Page 9: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/9.jpg)
9
Fréchet Distance F
A different walk
![Page 10: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/10.jpg)
10
Fréchet Distance F
Fréchet Idea: Examine all possible walks. Yields a set M of maximum leash lengths. F = shortest leash length in M.
![Page 11: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/11.jpg)
11
Fréchet Distance Fréchet Distance:
Small F curves are similar
Large F curves NOT similar
![Page 12: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/12.jpg)
12
Calculating Fréchet Distance Representing all walks:
Position on blue curve X-axis position “ “ red curve Y-axis position
Free Space Diagram
![Page 13: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/13.jpg)
13
Calculating Fréchet Distance Free Space Diagram
White: Person & dog are “close together” Leash length ≤ ε
Green: Person & dog are “far apart”Leash length > ε
Free Space Diagram
![Page 14: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/14.jpg)
14
Calculating Fréchet Distance
Free Space Diagram as ε is varied:
![Page 15: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/15.jpg)
15
Calculating Fréchet Distance
Computing F:
1. Decision Problem
2. Optimization Problem
![Page 16: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/16.jpg)
16
Calculating Fréchet Distance
1) Decision Problem Given leash length: ε Monotone path through free space?
Answer: YES or NO Dynamic Programming [Alt1995]
NOYESYES
![Page 17: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/17.jpg)
17
Calculating Fréchet Distance
2) Optimization Problem
ε is too smallε is too big ε is as small as possible
![Page 18: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/18.jpg)
18
Geodesic Fréchet Distance
![Page 19: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/19.jpg)
19
Geodesic Fréchet Distance
Defn: Geodesic in a simple polygon – shortest path that avoids obstacles [Mitchell1987].
Leash stays inside a simple polygon.
![Page 20: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/20.jpg)
20
Geodesic Fréchet Distance Computation:
1. Decision Problem Geodesic Free Space Diagram
2. Optimization Problem
ε is too smallε is too bigε is as small as possible
![Page 21: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/21.jpg)
21
Geodesics inside a simple polygon: Funnel [Guibas1989]
Horizontal/vertical line segment in a free space cell.
Geodesic Fréchet Distance
p
d
c
![Page 22: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/22.jpg)
22
Algorithm: Geodesic Decision Problem1. Compute each cell boundary in logarithmic time.
Geodesic Fréchet Distance
Cell
Funnel [Guibas1989] Funnel’s distance function• Piecewise hyperbolic• Bitonic
Cell Free Space
y =
![Page 23: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/23.jpg)
23
Algorithm: Geodesic Decision Problem Compute each cell boundary in logarithmic time.
2. Test for monotone path: Cell free space
x-monotone, y-monotone, & connected Only cell boundaries are required
Geodesic Fréchet Distance
![Page 24: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/24.jpg)
24
Time: Geodesic Decision Problem Let N = complexity of Person & Dog curves Let k = complexity of simple polygon
Time: O(N2 log k) versus O(N2) non-geodesic case Compute cell boundaries Test for monotone path
Geodesic Fréchet Distance
NOYESYES
![Page 25: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/25.jpg)
25
Geodesic Optimization Problem
Geodesic Fréchet Distance
ε is too smallε is too big ε is as small as possible
![Page 26: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/26.jpg)
26
Geodesic Optimization Problem Traditional approach:
Parametric Search Sort O(N2) constant-complexity cell boundary functions
Geodesic case: Each cell boundary has O(k) complexity Straightforward parametric search sorts O(kN2) values Goal: Faster
Geodesic Fréchet Distance
![Page 27: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/27.jpg)
27
Randomized red-blue intersections Practical alternative to parametric search
Critical Values Potential solutions for F
Resolve with red-blue intersections
Geodesic Fréchet Distance G
![Page 28: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/28.jpg)
28
Critical Values As increases:
Free space changes monotonically
Geodesic Fréchet Distance G
![Page 29: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/29.jpg)
29
Geodesic Optimization Problem Critical Value
Intersection of monotone functions
Geodesic Fréchet Distance G
![Page 30: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/30.jpg)
30
Red-Blue Intersections Red function properties:
monotone decreasing & continuous
Blue function properties: monotone increasing & continuous
Geodesic Fréchet Distance G
![Page 31: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/31.jpg)
31
Red-Blue Intersections [Palazzi1994]
Geodesic Fréchet Distance G
![Page 32: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/32.jpg)
32
Counting Red-Blue Intersections Sort the curve values at = and = Count the number of blue curves below each red
curve
Geodesic Fréchet Distance G
![Page 33: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/33.jpg)
33
Red-Blue Intersections r3 lies above:
two blue curves at = one blue curve at = .
(2-1) intersections for r3 in ≤ ≤ .
Geodesic Fréchet Distance G
![Page 34: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/34.jpg)
34
Geodesic Fréchet Distance
Red-Blue Intersections: Vertical slab: ≤ ≤
Count number of intersections [arrays] Report intersections [BST] Get-random intersection [persistent BST]
Positionon cell
boundary
![Page 35: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/35.jpg)
35
Geodesic Fréchet Distance Geodesic Optimization Problem
Goal: Make as small as possible
Repeatedly find a random critical value and use the idea of binary search to converge.
ε is too smallε is too bigε is as small as possible
![Page 36: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/36.jpg)
36
Parametric Search vs. Randomization: Parametric Search [traditional]
Sorting cell boundary functions Huge constant factors [Cole1987]
Randomized Red-Blue Intersections Practical alternative to parametric search
Not previously applied to Fréchet distance Faster expected runtime Straightforward implementation
Geodesic Fréchet Distance G
![Page 37: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/37.jpg)
37
Geodesic Optimization Problem Parametric Search time: O(k+kN2 log kN) Red-Blue expected runtime: O(k+(N2 log
kN)log N)
Geodesic Fréchet Distance
![Page 38: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/38.jpg)
38
Geodesic Fréchet Distance Applications Faster solution
Randomized alternatives to parametric search
Surfaces Piecewise-smooth curves
Future Work
![Page 39: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/39.jpg)
39
Conclusion Fréchet Distance
Measures similarity of continuous shapes Similar Different
Geodesic Fréchet Distance: Simple Polygon Obstacles affect similarity Red-Blue intersections
Practical alternative
to parametric search
![Page 40: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/40.jpg)
40
References:
[Alt1995] Alt, H. & Godau, M.
Computing the Fréchet Distance Between Two Polygonal CurvesInternational Journal of Computational Geometry and Applications, 1995, 5, 75-91
[Cole1987] Cole, R.
Slowing down sorting networks to obtain faster sorting algorithmsJ. ACM, ACM Press, 1987, 34, 200-208
![Page 41: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/41.jpg)
41
References:
[Cook2007] Cook IV, A. F. & Wenk, C.
Geodesic Fréchet Distance Inside a Simple PolygonProceedings of the 25th International Symposium on Theoretical Aspects of Computer Science (STACS), Bordeaux, France, 2008
[Guibas1989] Guibas, L. J. & Hershberger, J.
Optimal shortest path queries in a simple polygonJ. Comput. Syst. Sci., Academic Press, Inc., 1989, 39, 126-152
![Page 42: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/42.jpg)
42
References:
[Mitchell1987] Mitchell, J. S. B.; Mount, D. M. & Papadimitriou, C. H.
The discrete geodesic problemSIAM J. Comput., Society for Industrial and Applied Mathematics, 1987, 16, 647-668
[Palazzi1994] Palazzi, L. & Snoeyink, J.
Counting and reporting red/blue segment intersectionsCVGIP: Graph. Models Image Process., Academic Press, Inc., 1994, 56, 304-310
![Page 43: Geodesic Fréchet Distance Inside a Simple Polygon Atlas F. Cook IV & Carola Wenk Proceedings of the 25th International Symposium on Theoretical Aspects](https://reader036.vdocuments.mx/reader036/viewer/2022062309/5697bfdc1a28abf838cb11c0/html5/thumbnails/43.jpg)
43
Questions?