1. A method of performing tonal transformation on image data, the method comprising: extracting a plurality of portions of the image data; assigning one of a plurality of labels to each of the plurality of extracted portions, the plurality of labels comprising a first label and a second label; performing a first tonal transformation on the extracted portion assigned the first label; and performing a second tonal transformation on the extracted portion assigned the second label.