input (mango.Dds) – Image to label (must have input.mtype==mtype("segmented")).
val (int) – The value in the input image for which connected component labels
are generated.
connectivity (int) – Connectivity structuring elements type, only 6-neighbour
or 26 neighbour connectivity.
dosort (bool) – Whether to sort the component labels. Sorting generates a label
sequence which is related to the global voxel index of the labeled components.
Sorting produces consistant labeling no matter the MPI layout of the input data.