Morphological snakes for image segmentation