In ChanVeseBinarize, marker can be given either as an image, a graphics object, or a list of points in the standard image coordinate system, where x runs from 0 to width and y runs from 0 to height, and position corresponds to the bottom-left corner of the image.
ChanVeseBinarize uses the Euclidean distance between channel vectors to determine the similarity between pixels inside and outside of the contour.
ChanVeseBinarize iteratively minimizes a functional that is a weighted sum of the contour length, the enclosed area, and the deviation between the image and the two-level segmentation.
The weights can be specified with the following options:
penalty associated with the area enclosed by the contour
contour length penalty
penalties for the total pixel deviations in the two segments
target foreground color
With the setting , both foreground and background colors can be specified.
The maximum number of iteration steps is given by the MaxIterations option with default setting 100.
The Chan-Vese segmentation of an image domain into the two segments and with contour minimizes the following functional of image :
The Chan-Vese functional is parametrized by the length penalty , the area penalty , and level penalties and .
The Chan-Vese algorithm partitions image such that the first segment will differ as little as possible from constant and the second segment will deviate as little as possible from constant . If constants and are not specified, one assumes c1=Mean[f] in , and c2=Mean[f] in .
The contour between the two resulting segments and will exhibit a short length for , and for the area of will tend to be small or for tend to be large.
The weighting coefficients , , , and are accessible through the following options.