Apparatus and a method for reducing red-eye in a digital image
First Claim
1. A red-eye reduction system, comprising:
- (A) a masking module that converts an image into a mask having first state areas representing red color pixels and second state areas representing other color pixels, wherein the image includes an eye with a red pupil;
(B) a pupil locating module coupled to the masking module to locate a substantially first state area in the mask that resembles a pupil by determining if the substantially first state area is a substantially largest first state area within the mask, wherein determining that substantially first state area resembles a pupil, the pupil locating module modifies the mask by changing all other first state areas in the mask into second state such that the modified mask only has the substantially first state areas;
(C) a color replacing module coupled to the pupil locating module to change the red color pixels in the area into a predetermined color, wherein the color replacing module also adjust boundary of the area by changing the colors of pixels in close proximity to the, area to the predetermined color if the color of these pixels is determined to be sufficiently close to red.
3 Assignments
0 Petitions
Accused Products
Abstract
A red-eye reduction system is described that includes a masking module. The masking module converts an image into a mask having first state areas representing red color pixels of the image and second state areas representing other color pixels of the image. The image includes an eye with a red pupil. A pupil locating module is coupled to the masking module to locate a substantially first state area in the mask that resembles a pupil. A color replacing module is then coupled to the pupil locating module to change the red color pixels in the area into monochrome (grey) or other predefined colors. The color replacing module also adjusts the boundary of the area by changing the colors of pixels in close proximity to the area if the color of these pixels is determined to be sufficiently close to red such that natural appearance of the eye is maintained when reducing the red pupil. A method of reducing red-eye effect in a digital image is also described.
-
Citations
11 Claims
-
1. A red-eye reduction system, comprising:
-
(A) a masking module that converts an image into a mask having first state areas representing red color pixels and second state areas representing other color pixels, wherein the image includes an eye with a red pupil; (B) a pupil locating module coupled to the masking module to locate a substantially first state area in the mask that resembles a pupil by determining if the substantially first state area is a substantially largest first state area within the mask, wherein determining that substantially first state area resembles a pupil, the pupil locating module modifies the mask by changing all other first state areas in the mask into second state such that the modified mask only has the substantially first state areas; (C) a color replacing module coupled to the pupil locating module to change the red color pixels in the area into a predetermined color, wherein the color replacing module also adjust boundary of the area by changing the colors of pixels in close proximity to the, area to the predetermined color if the color of these pixels is determined to be sufficiently close to red. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method of reducing red-eye effect in a digital image, comprising:
-
(A) converting an image having an eye with a red pupil into a binary mask having first state areas representing red color pixels of the image and second state areas representing other color pixels of the image, wherein the image includes an eye with a red pupil; (B) processing the mask to locate a substantially first state area in the mask that resembles a pupil, (C) changing the red color pixels in the area into a predetermined color with boundary adjustments such that the color of pixels in close proximity to the area is also changed to the predetermined color if the color of these pixels is determined to be sufficiently close to red other comprising (a) determining if the adjusted pixel outside the substantially first state area is a pixel that has at least one neigh-boring pixel within the substantially first state area; (b) if so, comparing the color value of the adjusted pixel with (i) a median red value and (ii) a median green value of all tile red color pixels within the substantially first state area to determine if the color of the adjusted pixel is sufficiently close to red, wherein the color value of the adjusted pixel is determined to be sufficiently close to red if the color value of the adjusted pixel varies from the median red value by less than a first predetermined value and the red-green color difference of the adjusted pixel varies from the difference between the red Median value and the green median value by less than a second predetermined value; (c) if so, changing the color of the adjacent pixel to the predetermined color. - View Dependent Claims (8, 9, 10, 11)
-
Specification