Visual Basic |
---|
Public Sub AutoRemoveRedeye( _ ByVal IPRedeyeShade As enumEyeShade, _ ByVal IPRedeyeGlare As enumEyeGlare, _ ByVal bUseEditRectangles As Boolean _ ) |
- IPRedeyeShade
An enumEyeShade value which determines the type of eye shade to use.Value Description EyeShadeDark Dark eye shading. EyeShadeLight Light eye shading. EyeShadeNormal Normal shade. - IPRedeyeGlare
An enumEyeGlare value which determines the type of eye shade to use.Value Description EyeGlareFull Strong image glare. EyeGlareNone No glare. EyeGlareSlight Slight image glare. - bUseEditRectangles
When true, previously detected redeye rectangles are used to correct red eyes.
When false, the algorithm detects rectangles with red eyes and corrects them. Existing rectangles are ignored when correcting red eyes.
The algorithm searches for rectangles containing red eyes, and corrects the red eyes.
This method accurately corrects red eyes without modifying non-eyes in most cases without any intervention. However, as with any algorithm, there is a potential for false positives (modifications of areas that are not eyes), or red eyes that are not corrected in some images.
To provide the application with maximum control over this behavior, this method stores in the Redeye properties all areas that have been corrected as a collection of rectangles with corresponding correction information. The rectangles identify areas in which red-eyes were detected and corrected, and a value indicating the confidence that the area corrected was a red eye. This enables the application to set an acceptable level of false positives, and optimize red-eye correction.
Note: Available in Professional edition.
ImagXpress Object | ImagXpress Members | RedeyeRectangleConfidence Property | RedeyeRectangleHeight Property | RedeyeRectangleIndex Property | RedeyeRectangleWidth Property | RedeyeRectangleX Property | RedeyeRectangleY Property | RedeyeTotalCount Property | Redeye Removal | Color Image Processing | Image Processing