Using the Distance Transform
Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
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
detailSectionParagraphPermanent Citation
"Using the Distance Transform"
http://demonstrations.wolfram.com/UsingTheDistanceTransform/
Wolfram Demonstrations Project
Published: March 7 2011