A system and method for detecting a shape in an image are provided. The
method comprises: constructing a deformable model from an image;
deforming the deformable model to remove an undesired shape in a portion
of the image; computing properties of the deformed model to enable
detection of a desired shape in the portion of the image; and detecting
the desired shape based on the computed properties.