Using the Distance Transform

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

The distance transform gives the distance-map representation of an image. It replaces each pixel with the Euclidean distance between the pixel and the nearest background pixel. It is used in various applications, such as blurring, pathfinding, motion planning in robotics, and so on. It can also be used to classify certain objects in an image as foreground or background by defining a threshold. The "foreground range" control in this Demonstration is an example of such a threshold where all the pixels above this threshold are treated as foreground.

Contributed by: Srivani Pinneli and Yu-Sung Chang (March 2011)
Open content licensed under CC BY-NC-SA


Snapshots


Details

detailSectionParagraph


Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send