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