Gravar-mail: An active contour model based on local fitted images for image segmentation