Image segmentation algorithm code based on Chan-Vese model