An improved image segmentation algorithm is provided that identifies each
object in an image. Pixels of the image are sorted based on a range of
attribute values of the image. These pixels are then added to a labeling
image one by one starting with an extreme point in the range of attribute
values. Features are calculated for each object located and these
features are matched with pre-defined acceptance criteria. If there is a
match, the object is output to an output image. The steps of adding
pixels to the image, evaluating the features of the resulting objects and
outputting the objects are repeated until a stopping point is reached.