摘要 |
<p>A system and method for correcting redeye in a digital image includes the functions or steps, respectively, of: presetting threshold values of luminance, hue and saturation; selecting at least one pixel of the image for comparison with the threshold values; identifying redeye pixels of the image by comparing luminance, hue and saturation values which are derived from color components of the selected pixels with the threshold values; indentifying redeye regions of the image having one or more adjacent redeye pixels which are surrounded by non-redeye pixels; replacing the luminance, hue and saturation values of the identified redeye pixels with values derived from weighted functions of the color components subject to a first set of color weights; identifying edge pixels as the redeye pixels which border non-redeye pixels; and smoothing each redeye region by replacing the luminance, hue and saturation values of the edge pixels with the weighted functions of the color components subject to a second set of color weights.</p> |