Segmentation of a 3D Volume

Segment a 3D volume by finding the connected components.

    
In[1]:=
Click for copyable input
Out[1]=