a method and apparatus is provided for producing a smooth closed curve from a binary mask such as the type produced when segmenting various parts of a human body . points defining the segmentation boundary are transformed into a set of polar coordinates . the set of coordinates is thresholded and averaged , and then smoothed using a window smoothing technique . the resulting boundary points are curve fit to produce the smooth closed curve .