connComp3D(mask)
index
and cluster size
)
The first element index
is a 3D array containing the cluster index of the connected component for each voxel.
The second element size
is a 3D array consisting of the size of the connected component inhabited by each voxel.