1. A method of performing red-eye correction on a defect region of a digital image, the method comprising adjusting, by a processor, a luminance of the defect region in which red-eye correction is to be performed, wherein adjusting the luminance of the defect region comprises: generating a statistical measure of the luminance in the defect region; selecting, based on a viewing condition associated with the digital image, one of plural mapping functions corresponding to different viewing conditions, wherein the plural mapping functions apply different luminance adjustments for the different viewing conditions; and computing an adjusted luminance by applying the selected mapping function to the statistical measure, wherein the adjusted luminance differs for the different viewing conditions.