Using the Distance Transform

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.

comments
 
Powered by Wolfram Mathematica
Give us your feedback
Give us your feedback

Source page:




 often  occasionally  never

Note: Please do not include anything you consider confidential or proprietary. Your message and contact information may be shared with the author of any specific Demonstration for which you give feedback, but will not otherwise be published or distributed.
Privacy Policy »

Note: To run this Demonstration you need the free
Mathematica Player
or Mathematica 7+
Download or upgrade to Mathematica Player 7
I already have Mathematica Player or Mathematica 7+