1. A method of processing an image, comprising: (a) receiving the image and segmenting the image into a foreground and a background; (b) calculating the extent of segmentation of the segmented image, compensating for the result of segmentation based on the calculated extent of segmentation, and determining the extent of processing the image; and (c) discriminatively processing the image according to the determined extent of processing.