3D graph cut segmentation