Implementation of several image segmentation algorithms.