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.
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.
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:
- Euclidean distance
- Taxicab geometry, also known as City block distance or Manhattan distance.
- Chessboard distance
Applications are digital image processing (e.g., blurring effects, skeletonizing), motion planning in robotics, and even pathfinding.
Famous quotes containing the words distance and/or transform:
“1946: I go to graduate school at Tulane in order to get distance from a possessive mother. I see a lot of a red-haired girl named Maude-Ellen. My mother asks one day: Does Maude-Ellen have warts? Every girl Ive known named Maude-Ellen has had warts. Right: Maude-Ellen had warts.”
—Bill Bouke (20th century)
“But I must needs take my petulance, contrasting it with my accustomed morning hopefulness, as a sign of the ageing of appetite, of a decay in the very capacity of enjoyment. We need some imaginative stimulus, some not impossible ideal which may shape vague hope, and transform it into effective desire, to carry us year after year, without disgust, through the routine- work which is so large a part of life.”
—Walter Pater (18391894)