ImageGear Professional v18.2 > User Guide > Using ImageGear > Image Processing > Basic Image Processing with IGProcessingCtl > Red-Eye Removal |
Red-eye removal group of methods removes the "red eye" effect in color images by converting the red color in the eye to the new specified color. ImageGear's Red-Eye Removal works by detecting an area around a specified point where the colors correspond to the point color with the specified threshold. This detected area is saved as a Region of Interest (ROI) of the raster page. Red eye is then removed for every point in the ROI of a raster page. It is designed only for red eye removal, not other colors (as may occur with animal eyes).
The DetectRedeyeArea Method detects an area around specified point where the colors correspond to the point color with the specified threshold. The detected area is returned as a ROI.
For example, the color of the specified point is:
Red == 212;
Green == 96;
Blue == 128;
And threshold is 10.
The method detects a closed polygon around the specified point in which the color components belong to the range.
Red - 202.. 222;
Green - 86..106
Blue - 118.. 138
The RemoveRedeye Method removes red eye for every point in the ROI of a raster page. It is designed only for red eye removal, not other colors (as occurs with animal eyes). First, the red component must be reduced to be around the same level of the green and blue components. Then, all three components must be reduced. The following are some examples of corrected color values:
210,39,71 -> 25,23,26
186,77,82 -> 64,54,53
236,95,101 -> 80,80,78