MorphologicalComponents
WMA link
MorphologicalComponents
[image]
- Builds a 2-D 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, threshold]
- consider any pixel with a value above threshold as the foreground.