DistanceTransform

DistanceTransform[image]
gives the distance transform of image, in which the value of each pixel is replaced by its distance to the nearest background pixel.

DistanceTransform[image, t]
treats values above t as foreground.

Details and OptionsDetails and Options

New in 7 | Last modified in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »