Jump to content

Distance transform

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by JMP EAX (talk | contribs) at 17:00, 6 August 2014. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A distance transform, also known as distance map or distance field, is a derived representation of a digital image. The choice of the term depends on the point of view on the object in question: whether the initial image is transformed into another representation, or it is simply endowed with an additional map or field.

Distance fields can also be signed, in the case where it is important to distinguish whether the point is inside or outside of the shape.[1]

The map labels each pixel of the image with the distance to the nearest obstacle pixel. A most common type of obstacle pixel is a boundary pixel in a binary image. See the image for an example of a chessboard distance transform on a binary image.

A distance transformation

Usually the transform/map is qualified with the chosen metric. For example, one may speak of Manhattan distance transform, if the underlying metric is Manhattan distance. Common metrics are:

Applications are digital image processing (e.g., blurring effects, skeletonizing), motion planning in robotics, and even pathfinding.

See also

References