Detecting and correcting red-eye in a digital image
First Claim
1. A method of processing a digital image containing pixels with original color values, comprising:
- computing measures of pixel redness in the digital image;
identifying a preliminary set of candidate red-eye pixel areas based on the computed pixel redness measures;
filtering from the preliminary set each candidate red-eye pixel area having a computed redness contrast relative to at least one respective neighboring pixel area less than a prescribed redness contrast threshold; and
filtering from the preliminary set each candidate red-eye pixel area located in an area of the digital image having a computed grayscale contrast relative to at least one respective neighboring pixel area less than a prescribed grayscale contrast threshold.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems and methods of detecting and correcting red-eye in a digital image are described. In one aspect, measures of pixel redness in the digital image are computed. A preliminary set of candidate red-eye pixel areas is identified based on the computed pixel redness measures. Each candidate red-eye pixel area having a computed redness contrast relative to at least one respective neighboring pixel area less than a prescribed redness contrast threshold is filtered from the preliminary set. In addition, each candidate red-eye pixel area located in an area of the digital image having a computed grayscale contrast relative to at least one respective neighboring pixel area less than a prescribed grayscale contrast threshold is filtered from the preliminary set. In another aspect, at least one candidate red-eye pixel area in the digital image is detected. Pixels in each candidate red-eye pixel area are classified based on redness and skin tone coloration. For each candidate red-eye pixel area, an initial pixel mask identifying all pixels in the candidate red-eye pixel area classified as red and non-skin tone is generated. A final pixel mask is generated based on each initial pixel mask. Red-eye in the digital image is corrected by darkening and desaturating original color values identified as red in the final pixel mask, wherein original color values of pixels identified as red in the final pixel mask are desaturated by respective amounts that vary with pixel location in the final pixel mask.
92 Citations
67 Claims
-
1. A method of processing a digital image containing pixels with original color values, comprising:
-
computing measures of pixel redness in the digital image;
identifying a preliminary set of candidate red-eye pixel areas based on the computed pixel redness measures;
filtering from the preliminary set each candidate red-eye pixel area having a computed redness contrast relative to at least one respective neighboring pixel area less than a prescribed redness contrast threshold; and
filtering from the preliminary set each candidate red-eye pixel area located in an area of the digital image having a computed grayscale contrast relative to at least one respective neighboring pixel area less than a prescribed grayscale contrast threshold. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)
-
-
33. A method of processing a digital image containing pixels with original color values, comprising:
-
detecting at least one candidate red-eye pixel area in the digital image;
classifying pixels in each candidate red-eye pixel area based on redness and skin tone coloration;
for each candidate red-eye pixel area, generating an initial pixel mask identifying all pixels in the candidate red-eye pixel area classified as red and non-skin tone;
generating a final pixel mask based on each initial pixel mask; and
correcting red-eye in the digital image by darkening and desaturating original color values identified as red in the final pixel mask, wherein original color values of pixels identified as red in the final pixel mask are desaturated by respective amounts that vary with pixel location in the final pixel mask. - View Dependent Claims (34, 35, 36, 37, 38)
-
-
39. A system for processing a digital image containing pixels with original color values, comprising a global screening module operable to:
-
compute measures of pixel redness in the digital image;
identify a preliminary set of candidate red-eye pixel areas based on the computed pixel redness measures;
filter from the preliminary set each candidate red-eye pixel area having a computed redness contrast relative to at least one respective neighboring pixel area less than a prescribed redness contrast threshold; and
filter from the preliminary set each candidate red-eye pixel area located in an area of the digital image having a computed grayscale contrast relative to at least one respective neighboring pixel area less than a prescribed grayscale contrast threshold. - View Dependent Claims (40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60)
-
-
61. A system for processing a digital image containing pixels with original color values, comprising:
-
a red-eye detection module operable to detect at least one candidate red-eye pixel area in the digital image;
a red-eye segmentation module operable to classify pixels in each candidate red-eye pixel area based on redness and skin tone coloration, for each candidate red-eye pixel area, generate an initial pixel mask identifying all pixels in the candidate red-eye pixel area classified as red and non-skin tone, and generate a final pixel mask based on each initial pixel mask; and
a red-eye correction module operable to correct red-eye in the digital image by darkening and desaturating original color values identified as red in the final pixel mask, wherein original color values of pixels identified as red in the final pixel mask are desaturated by respective amounts that vary with location in the final pixel mask.
-
-
62. A method of processing a digital image containing pixels with original color values, comprising:
-
classifying an initial window region of the digital image as a red-eye region or a non-red-eye region;
adjusting size and location parameters of the window region to encompass a red-eye area of the digital image;
identifying in the adjusted window region red-eye pixels corresponding to an isolated red pixel island; and
correcting original color values of at least some of the red-eye pixels identified in the adjusted window region. - View Dependent Claims (63, 64, 65, 66, 67)
-
Specification