Create label matrix from bwconncomp structure
A label matrix labels objects or connected components in a binary image with unique integer values. Use a label matrix to visualize distinct objects or connected components.
creates a label matrix, L = labelmatrix(CC)L, from the connected components
structure CC returned by bwconncomp.