lecture 25 geodesic paths
play

Lecture 25: Geodesic Paths COMPSCI/MATH 290-04 Chris Tralie, Duke - PowerPoint PPT Presentation

Lecture 25: Geodesic Paths COMPSCI/MATH 290-04 Chris Tralie, Duke University 4/14/2016 COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths Announcements Group Assignment 3 Out: First Deadline Monday 4/18. Final Deadline Tuesday 4/26 Final


  1. Lecture 25: Geodesic Paths COMPSCI/MATH 290-04 Chris Tralie, Duke University 4/14/2016 COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  2. Announcements ⊲ Group Assignment 3 Out: First Deadline Monday 4/18. Final Deadline Tuesday 4/26 ⊲ Final Project Final Deadline 5/3 5:00 PM COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  3. Table of Contents ◮ Geodesics ⊲ Dijkstra’s / Fast Marching ⊲ G2 Geodesic Histograms COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  4. Geodesic Paths Euclidean Path (shortest path of flying fly) COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  5. Geodesic Paths Euclidean Path (shortest Geodesic Path (shortest path of flying fly) path of crawling ant) COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  6. Geodesic Paths on Spheres COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  7. Geodesic Paths on Spheres P Q ⊲ Geodesic paths on spheres lie along great circles COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  8. Geodesic Paths on Spheres P Q ⊲ Geodesic paths on spheres lie along great circles ⊲ Geodesic distance is the shortest geodesic path COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  9. Geodesic Paths on Spheres P Q ⊲ Geodesic paths on spheres lie along great circles ⊲ Geodesic distance is the shortest geodesic path ⊲ What is the geodesic distance between two points � P and � Q on a sphere centered at the origin with radius R? COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  10. Geodesic Paths on Spheres P and � What is the geodesic distance between two points � Q on a sphere centered at the origin with radius R ? � � � � P · � � P · � � Q Q R cos − 1 = R cos − 1 R 2 || � P |||| � Q || Remember SLERP?? COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  11. Another Geodesic Mesh Example COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  12. Table of Contents ⊲ Geodesics ◮ Dijkstra’s / Fast Marching ⊲ G2 Geodesic Histograms COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  13. Dijkstra’s Algorithm Review def Dijsktra(Graph, source): list dists list prev dist[source] = 0 Queue Q for vertex v in Graph: if v not source: dists[v] = Infinity prev[v] = Undefined Q.add(v, dists[v]) while len (Q) > 0: u = Q.getMin() for v in neighbors(u): d = dists[u] + length(u, v) if d < dists[v]: dists[v] = d prev[v] = u Q.decreasePriority(v, d) return (dist, prev) COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  14. Dijkstra’s Algorithm Review def Dijsktra(Graph, source): list dists What is the list prev worst case dist[source] = 0 behavior for Queue Q for vertex v in Graph: ⊲ V ver- if v not source: tices dists[v] = Infinity ⊲ E edges prev[v] = Undefined Q.add(v, dists[v]) for a bal- while len (Q) > 0: anced min u = Q.getMin() heap Q ? for v in neighbors(u): d = dists[u] + length(u, v) if d < dists[v]: dists[v] = d prev[v] = u Q.decreasePriority(v, d) return (dist, prev) COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  15. Dijkstra’s Algorithm Review def Dijsktra(Graph, source): list dists What is the list prev worst case dist[source] = 0 behavior for Queue Q for vertex v in Graph: ⊲ V ver- if v not source: tices dists[v] = Infinity ⊲ E edges prev[v] = Undefined Q.add(v, dists[v]) for a bal- while len (Q) > 0: anced min u = Q.getMin() heap Q ? for v in neighbors(u): d = dists[u] + length(u, v) if d < dists[v]: O (( E + V ) log ( V )) dists[v] = d prev[v] = u Q.decreasePriority(v, d) return (dist, prev) COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  16. Dijkstra’s Directly on Mesh Edges COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  17. Dijkstra’s Directly on Mesh Edges 8x8 Cartesian Grid: Side Length 1 √ Shortest path along mesh is length 7 2 COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  18. Dijkstra’s Directly on Mesh Edges 8x8 Cartesian Grid: Side Length 1 COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  19. Dijkstra’s Directly on Mesh Edges 8x8 Cartesian Grid: Side Length 1 Shortest path along mesh is 14 COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  20. Dijkstra’s Directly on Mesh Edges Does refining the grid help? 15x15 Cartesian Grid: Side Length 0.5 COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  21. Dijkstra’s Directly on Mesh Edges Does refining the grid help? 15x15 Cartesian Grid: Side Length 0.5 Nope! COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  22. Dijkstra’s Directly on Mesh Edges In general, mesh biases the solution! COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  23. Fast Marching A modification of Dijkstra’s algorithm to cut through triangles COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  24. Fast Marching A modification of Dijkstra’s algorithm to cut through triangles COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  25. Table of Contents ⊲ Geodesics ⊲ Dijkstra’s / Fast Marching ◮ G2 Geodesic Histograms COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  26. Mesh Isomorphisms An isomorphism preserves all pairwise geodesic distances COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

  27. Mesh Isomorphisms Contrast with Euclidean COMPSCI/MATH 290-04 Lecture 25: Geodesic Paths

Recommend


More recommend