A method for segmentation of an image interactively with a user utilizes
level set segmentation and includes selecting by user input respective
areas of object and of background; initializing an embedding function
implementing a segmentation boundary according to the selecting;
computing intensity distributions and for the respective areas of object
and of background; and performing repeatedly the steps below until
convergence is reached: (a) evolving the embedding function, (b)
recomputing the intensity distributions, and (c) checking for new user
input and, if so: (d) updating labeling of the areas of object and
background.