Welcome to ornacle.com on July 13 2009.
This is an internet experiment running to monitor browsing habbits of individuals through wikipedia contents.

Hausdorff distance

From Wikipedia, the free encyclopedia

Jump to: navigation, search

In mathematics, the Hausdorff distance, or Hausdorff metric, measures how far two subsets of a metric space are from each other. It turns the set of non-empty compact subsets of a metric space into a metric space in its own right. It is named after Felix Hausdorff.

Informally, two sets are close in the Hausdorff distance if every point of either set is close to some point of the other set. The Hausdorff distance is the longest distance you can be forced to travel by an adversary who chooses a point in one of the two sets, from where you then must travel to the other set.

Contents

[edit] Definition

Components of the calculation of the Hausdorff distance between the green line X and the blue line Y.

Let X and Y be two non-empty subsets of a metric space (Md). We define their Hausdorff distance d H(X, Y) by

 d_{\mathrm H}(X,Y) = \max\{\,\sup_{x \in X} \inf_{y \in Y} d(x,y),\, \sup_{y \in Y} \inf_{x \in X} d(x,y)\,\}\mbox{,} \!

where sup represents the supremum and inf the infimum.

[edit] Properties

In general, dH(X,Y) may be infinite. If both X and Y are bounded, then dH(X,Y) is guaranteed to be finite.

We have dH(X,Y) = 0 if and only if X and Y have the same closure.

On the set of all non-empty subsets of M, dH yields an extended pseudometric.

On the set F(M) of all non-empty compact subsets of M, dH is a metric. If M is complete, then so is F(M). If M is compact, then so is F(M). The topology of F(M) depends only on the topology of M, not on the metric d.

[edit] Motivation

The definition of the Hausdorff distance can be derived by a series of natural extensions of the distance function d(x, y) in the underlying metric space M, as follows:[1]

  • Define a distance function between any point x of M and any non-empty set Y of M by:
d(x,Y)=\inf_{y \in Y} d(x,y)\, .
For example, d(1, [3,6]) = 2 and d(7, [3,6]) = 1.
  • Define a distance function between any two non-empty sets X and Y of M by:
d(X,Y)=\sup_{x \in X} d(x,Y)\, .
For example, d([1,7], [3,6]) = d(1, [3,6]) = 2.
  • If X and Y are compact then d(X,Y) will be finite; d(X,X)=0; and d inherits the triangle inequality property from the distance function in M. As it stands, d(X,Y) is not a metric because d(X,Y) is not always symmetric, and d(X,Y) = 0 does not imply that X = Y (It does imply that  X \subseteq Y). For example, d([1,3,6,7], [3,6]) = 2, but d([3,6], [1,3,6,7]) = 0. However, we can create a metric by defining the Hausdorff distance to be:
d_{\mathrm H}(X,Y) = \max\{d(X,Y),d(Y,X) \} \, .

[edit] Applications

In computer vision, the Hausdorff distance can be used to find a given template in an arbitrary target image. The template and image are often pre-processed via an edge detector giving a binary image. Next, each 1 (activated) point in the binary image of the template is treated as a point in a set, the "shape" of the template. Similarly, an area of the binary target image is treated as a set of points. The algorithm then tries to minimize the Hausdorff distance between the template and some area of the target image. The area in the target image with the minimal Hausdorff distance to the template, can be considered the best candidate for locating the template in the target.[2]

[edit] Related concepts

A measure for the dissimilarity of two shapes is given by Hausdorff distance up to isometry, denoted DH. Namely, let X and Y be two compact figures in a metric space M (usually a Euclidean space); then DH(X,Y) is the infimum of dH(I(X),Y) along all isometries I of the metric space M to itself. This distance measures how far the shapes X and Y are from being isometric.

The Gromov–Hausdorff convergence is a related idea: we measure the distance of two metric spaces M and N by taking the infimum of dH(I(M),J(N)) along all isometric embeddings I:ML and J:NL into some common metric space L.

[edit] See also

[edit] References

  • Munkres, James; Topology, Prentice Hall; 2nd edition (December 28, 1999). ISBN 0131816292.
  1. ^ Barnsley, Michael (1993). Fractals Everywhere. Morgan Kaufmann. pp. Ch. II.6. ISBN 0120790696. 
  2. ^ Hausdorff-Based Matching

[edit] External links

Personal tools

Visit joltnews for the latest headlines
Visit bloit.com for company information
Geed Media does computer consulting on long island.
This page viewed times. See Logs