Classifying the pixels in an image according to some attribute of interest so that each grouping corresponds to some specific image feature. Possible features include boundaries, contours, and clusters of similar pixel values. Image segmentation is usually the first step in any use of machine vision techniques.