Finding Segments of an Image by Filtering Its Distance Transform
Initializing live version

Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
This Demonstration shows different distance transforms applied to an image. Running the Laplacian of a Gaussian filter on the result highlights the valleys and ridges in the distance transform, which yields a regional segmentation of the objects in the image.
Contributed by: Shadi Ashnai (March 2011)
Open content licensed under CC BY-NC-SA