The problem of image segmentaiton is very important for image understanding. It is also very challenging. Numerous algorithms have been proposed. The Matlab software below provides an implementaiton of a particular image segmentation algorithm called Mean Shift.
Matlab package, also contains a short manual.
A description of the algorithm and some aspects of its implementation.