Semi-implicit covolume method in 3D image segmentation