Lecture 23: Hausdorff and Fréchet distance

Similar documents
Lecture 9: Random sampling, ɛ-approximation and ɛ-nets

Why walking the dog takes time: Fréchet distance has no strongly subquadratic algorithms unless SETH fails

Fly Cheaply: On the Minimum Fuel Consumption Problem

arxiv: v2 [cs.cg] 10 Apr 2018

Approximately Matching Polygonal Curves with Respect to the Fréchet Distance

Computing the Fréchet Gap Distance

Approximating the Minimum Closest Pair Distance and Nearest Neighbor Distances of Linearly Moving Points

Improved Approximation Bounds for Planar Point Pattern Matching

Nearest Neighbor Searching Under Uncertainty. Wuzhou Zhang Supervised by Pankaj K. Agarwal Department of Computer Science Duke University

Voronoi Diagrams for Oriented Spheres

Computing the Discrete Fréchet Distance in Subquadratic Time

Testing System Conformance for Cyber-Physical Systems

Fast algorithms for collision and proximity problems involving moving geometric objects

arxiv: v1 [cs.cg] 16 May 2011

Lecture 3: Voronoi Diagrams & VCP Preliminaries July 24, 2013

Lecture 9 Nearest Neighbor Search: Locality Sensitive Hashing.

The Awesome Averaging Power of Heat. Heat in Geometry

Optimal Data-Dependent Hashing for Approximate Near Neighbors

Entropy-Preserving Cuttings and Space-Efficient Planar Point Location

Szemerédi-Trotter theorem and applications

Approximability of the Discrete Fréchet Distance

Quasiconformal Maps and Circle Packings

Semi-algebraic Range Reporting and Emptiness Searching with Applications

On Solving Coverage Problems in a Wireless Sensor Network Using Voronoi Diagrams

Lecture 2: A Las Vegas Algorithm for finding the closest pair of points in the plane

Minimum-Dilation Tour (and Path) is NP-hard

Lecture 8 : Eigenvalues and Eigenvectors

Geometric Spanners With Small Chromatic Number

k th -order Voronoi Diagrams

arxiv: v1 [cs.cg] 14 Dec 2015

Radnor High School Course Syllabus Advanced Placement Calculus BC 0460

Test Codes : MIA (Objective Type) and MIB (Short Answer Type) 2007

Common Core Georgia Performance Standards Mathematics Grades Adopted Reason quantitatively and use units to solve problems.

Standards for AP Calculus AB

Testing congruence and symmetry for general 3-dimensional objects

Green s Theorem in the Plane

Approximate Voronoi Diagrams

Computing a Minimum-Dilation Spanning Tree is NP-hard

Lecture 3 January 28

An efficient approximation for point-set diameter in higher dimensions

COMS 4771 Introduction to Machine Learning. Nakul Verma

26.1 Metropolis method

CS 273 Prof. Serafim Batzoglou Prof. Jean-Claude Latombe Spring Lecture 12 : Energy maintenance (1) Lecturer: Prof. J.C.

Constructing Linkages for Drawing Plane Curves

x 2 + 6x 18 x + 2 Name: Class: Date: 1. Find the coordinates of the local extreme of the function y = x 2 4 x.

Voronoi Diagrams with a Transportation Network on the Euclidean Plane

MIDLAND ISD ADVANCED PLACEMENT CURRICULUM STANDARDS AP CALCULUS BC

Common Core Georgia Performance Standards: Curriculum Map 1 st Semester 2 nd Semester

COVERAGE CONTROL FOR MOBILE SENSING NETWORKS: VARIATIONS ON A THEME

AP Calculus BC Scope & Sequence

Intersection of Rectangle and Ellipse

Algorithms for Calculating Statistical Properties on Moving Points

Nearest-Neighbor Searching Under Uncertainty

Advanced Placement Calculus II- What Your Child Will Learn

Wolf-Tilo Balke Silviu Homoceanu Institut für Informationssysteme Technische Universität Braunschweig

Chapter 3. Riemannian Manifolds - I. The subject of this thesis is to extend the combinatorial curve reconstruction approach to curves

2 Review: Modeling Molecules with Spherical Balls

Lecture 14: Random Walks, Local Graph Clustering, Linear Programming

Fitting Linear Statistical Models to Data by Least Squares I: Introduction

Appendix. Online supplement to Coordinated logistics with a truck and a drone

Lecture 9: Low Rank Approximation

The region enclosed by the curve of f and the x-axis is rotated 360 about the x-axis. Find the volume of the solid formed.

SIMPLE MULTIVARIATE OPTIMIZATION

Convergence of a Generalized Midpoint Iteration

INF Shape descriptors

Multimedia Databases 1/29/ Indexes for Multimedia Data Indexes for Multimedia Data Indexes for Multimedia Data

5. DIVIDE AND CONQUER I

A Streaming Algorithm for 2-Center with Outliers in High Dimensions

Convex Optimization M2

MATH 241 FALL 2009 HOMEWORK 3 SOLUTIONS

Prentice Hall Calculus: Graphical, Numerical, and Algebraic AP* Student Edition 2007

Geometric Approximation via Coresets

Maximal and Convex Layers of Random Point Sets

Introduction. Chapter 1. Contents. EECS 600 Function Space Methods in System Theory Lecture Notes J. Fessler 1.1

Common Core State Standards for Mathematics - High School

Discrete Newton s Algorithm for Parametric Submodular Function Minimization

Manifold Regularization

Integer Representations of Convex Polygon Intersection Graphs

Lesson 9.1 Using the Distance Formula

WELL-SEPARATED PAIR DECOMPOSITION FOR THE UNIT-DISK GRAPH METRIC AND ITS APPLICATIONS

U.C. Berkeley CS294: Spectral Methods and Expanders Handout 11 Luca Trevisan February 29, 2016

Computing a Minimum-Dilation Spanning Tree is NP-hard

The Common Core Georgia Performance Standards (CCGPS) for Grades K-12 Mathematics may be accessed on-line at:

Distance and Midpoint Formula 7.1

Convex Optimization. Newton s method. ENSAE: Optimisation 1/44

7.1 Coupling from the Past

Varberg 8e-9e-ET Version Table of Contents Comparisons

1. Let g(x) and h(x) be polynomials with real coefficients such that

Module 7 : Applications of Integration - I. Lecture 21 : Relative rate of growth of functions [Section 21.1] Objectives

Curriculum and Pacing Guide Mr. White AP Calculus AB Revised May 2015

Correlation with College Board Advanced Placement Course Descriptions

Livingston American School 4TH Quarter Lesson Plan

LECTURE Itineraries We start with a simple example of a dynamical system obtained by iterating the quadratic polynomial

1 Matroid intersection

QUALIFYING EXAMINATION Harvard University Department of Mathematics Tuesday January 20, 2015 (Day 1)

Math 113 Final Exam Practice

5. DIVIDE AND CONQUER I

A MONOTONIC CONVOLUTION FOR MINKOWSKI SUMS

Topics Covered in Calculus BC

EE/ACM Applications of Convex Optimization in Signal Processing and Communications Lecture 17

Transcription:

CPS296.2 Geometric Optimization 05 April, 2007 Lecture 23: Hausdorff and Fréchet distance Lecturer: Pankaj K. Agarwal Scribe: Nihshanka Debroy 23.1 Introduction Shape matching is an important area of research as it has applications to a number of problems, such as object recognition and analysis of protein structures. In this lecture, we discuss the Hausdorff and Fréchet distances. Consider 2 point sets P R 2 and Q R 2, where the goal is to find the extent of similarity between P and Q. The first question that needs to be answered is: what do we mean by similar? Mathematically, we want to find a mapping σ:p Q, that has one of the following properties: σ minimizes max p P p σ(p) (minimizes maximum distance between mapped points) or, σ minimizes Σ p P p σ(p) (minimizes sum of distances between mapped points) or, σ minimizes Σ p P p σ(p) 2 (minimizes sum of squared distances between mapped points) The mapping σ does not have be one-to-one. The question is: how do we find σ? 23.2 Hausdorff Distance Let P and Q be two sets of points in R d. The directed Hausdorff distance from P to Q, denoted by h(p, Q), is max p P min p q. The Hausdorff distance between P and Q, denoted by H(P, Q), is max{h(p, Q), h(q, P )}. Intuitively, the function h(p, Q) finds the point p P that is farthest from any point in Q and measures the distance from p to its nearest neighbor in Q. Hausdorff distance is a measure of the mismatch between two point-sets. For d = 2, the Hausdorff distance can be computed in time O(n log n) (where n is the number of points), using a Voronoi diagram in R 2. In R 3 computing a Voronoi diagram could take quadratic time, so a different approach is needed to compute H(P, Q) in subquadratic time. Let D(q, r) be the disk of radius r centered at point q Q. The decision problem for the Hausdorff distance could be written as: Given r 0, whether h(p, Q) r? That is, p P, q p q r. p q p D(q, r) (23.1) 23-1

Lecture 23: 05 April, 2007 23-2 Figure 23.1: Translation: In the above figure, the points in blue represent one point-set, and the points in red represent the other. Clearly, the point-sets only differ in a translation factor. p p D(q, r) (23.2) P D(q, r) (23.3) A point p R d can be mapped to a point Q(p) R d+1 and a disk D(q, r) can be mapped to a half-space h q in R d+1 such that p D(q, r) if and only if Q(p) / h q. Hence, p D(q, r) iff p / h q, i.e., P D(q, r) Q(P ) ( h q ) = φ (23.4) A point-location data structure for convex polyhedra can be used to answer the decision query. When P and Q are sets of elements other than points (features, for example), a similar formulation is possible. A survey paper by Alt and Guibas describes geometric techniques to measure the similarity between discrete geometric shapes [1]. 23.3 Hausdorff Distance under Translation In some cases, the point-sets P and Q are very similar and a translation applied to one of the point sets would achieve the best matching. Figure 23.1 shows an example where a simple translation transforms one point-set to the other. So we permit translations. Let σ t be the correspondence between P + t and Q, where t represents the translation that is applied to P. The correspondence between the point-sets changes only at critical values of t. Let µ(p, Q) be the matching that minimizes the Hausdorff distance between P + t and Q and f(t) represent the Hausdorff distance for a given value of t.

Lecture 23: 05 April, 2007 23-3 Define µ(p, Q) as min t R 2 H(P + t, Q). We also define f(t) as H(P + t, Q). Let π be a partition of R 2 so that the map σ t remains the same for all points in a face of π. Figure 23.2 shows an example of what π could look like. Within each face of π, the correspondence between P + t and Q remains unchanged. Figure 23.2: Partition π: Within each region of the partition, the correspondence remains unchanged. Partition π has O(n 3 ) faces and this bound is tight in the worst case. We can compute π in O(n 3 log n) time. In fact, it can be shown that f(t) has Ω(n 3 ) local minima, but most of the minima are shallow. There are efficient approximation algorithms for computing µ(p, Q). The notion of π and f(.) can be introduced for other similarity functions as well. For example, let σ t be the correspondence for the Euclidean minimum weight matching between P + t and Q. We can again define the partition π. It is an open problem whether π has only polynomial number of faces in this case. A problem with taking a max is that outliers can have a significant effect, and hence, the Hausdorff distance is very sensitive to any outlier in P or Q. 23.4 Fréchet distance The Fréchet distance is a measure that takes the continuity of shapes into account and, hence, is better suited than the Hausdorff distance for curve or surface matching. A popular illustration of the Fréchet distance is, as follows [2]: Suppose a man is walking a dog. Assume the man is walking on one curve and the dog on another curve. Both can adjust their speeds but are not allowed to move backwards. The Fréchet distance of the two curves is then the minimum length of leash necessary to connect the man and the dog. The Fréchet distance between two curves is defined as follows: F r(p, Q) = inf α,β max P (α(t)) Q(β(t)) (23.5) t [0,1] where P, Q : [0, 1] R 2 are parametrizations of the two curves and α, β : [0, 1] [0, 1] range over all

Lecture 23: 05 April, 2007 23-4 Figure 23.3: P and Q in the above figure could be the backbones of two protein structures. A matching between P and Q should be monotone for biological significance to be maintained here. continuous and monotone increasing functions. If P and Q are polygonal chains with n and m line segments respectively, the decision problem for the Fréchet distance can be written as: whether φ(p, Q) r? Before describing an algorithm for the Fréchet distance, consider a simpler problem. Let P =< p 1,..., p n > and Q =< q 1,..., q m > be two polygonal chains. Define a mapping σ from the vertices of P to those of Q such that: 1. if q j1 = σ(p i1 ) and q j2 = σ(p i2 ), and i 1 < i 2 then j 1 j 2 (monotonicity) 2. max i p i σ(p i ) is minimum Figure 23.3 shows an example where a matching between the backbones of two protein structures needs to be monotone for biological significance to be preserved. This problem can be solved in O(mn) time using a dynamic programming approach. We extend this algorithm to Fréchet distance. An n m-diagram, shown in 23.4, indicates by the areas enclosed by the blue curves for which points p P and q Q, p q r. The horizontal and vertical directions of the diagram correspond to the natural parametrizations of P and Q respectively. A square cell of the diagram corresponds to 2 edges (one from P and one from Q) and can be easily computed as it is the intersection of the bounding square with an ellipse [1]. Therefore, φ(p, Q) r if there is a monotone increasing curve from the lower left to the upper right corner of the diagram (corresponding to a monotone mapping σ). Figure 23.5 shows an example of a monotonic path that defines a matching between point-sets P and Q. The decision problem mentioned just above can be answered in time O(mn). The optimization problem can be solved in O(mn log (mn)) time [3]. The Fréchet distance also suffers from outliers. Moreover, there is no good approximation algorithm known to calculate the Fréchet distance.

Lecture 23: 05 April, 2007 23-5 Figure 23.4: We place the points in P along the x-axis and the points in Q along the y-axis. The areas enclosed by the blue curves indicate for which points p P and q Q, p q r. A square cell of the diagram corresponds to 2 edges (one from P and one from Q) and can be easily computed as it is the intersection of the bounding square with an ellipse. Figure 23.5: A monotonic path through this graph gives a matching between P and Q. Point (α(t), β(t)) lies on this monotonic path.

Lecture 23: 05 April, 2007 23-6 References [1] H. Alt, L.J. Guibas, Handbook of Comput. Geom., pp. 121-153, 1999. [2] H. Alt, M. Godau, Int. J. Comput. Geom. and Appl., pp. 75-91, 1995. [3] R. Cole, J. ACM, vol. 34, pp. 200-208, 1987.