MorphologicalComponents

MorphologicalComponents[image]
gives an array in which each pixel of image is replaced by an integer index representing the connected foreground image component in which the pixel lies.

MorphologicalComponents[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 »