2D/3D image segmentation toolbox