Segmentation of a 3D Volume

Segment a 3D volume by finding the connected components.