Aurigma Graphics Mill 5.5 for .NET
RedEyeRemoval Class
This class represents red eye effect removal transform.
Namespace:
Aurigma.GraphicsMill.Transforms
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Visual Basic
Public NotInheritable Class RedEyeRemoval _ Inherits BitmapTransform
C#
public sealed class RedEyeRemoval : BitmapTransform
Remarks
Using this class you can add red eye effect removal into your application. It supports two modes: Manual and Semiautomatic. You specify the mode using the Mode property.
When you use the Manual mode, the user removes red eyes effect in two steps:
- Select the face of the person whose eyes should be processed. The selection should be specified by the FaceRegion property.
- Specify red eyes coordinates on the selected face (e.g. by mouse click). It is specified by the EyePoint property.
The Semiautomatic mode also requires the user to select a face. However it automatically searches red eyes on the selected face. When this mode is used, you can get the coordinates of red eyes found by the algorithm with a help of the Mask property. This way if the algorithm mistakes, you can display the user what was found and possible give them an opportunity to fix it manually. See the RedEyeMask and RedEyeBlob classes description for more details on this.
If you are not happy with results, you can play with sensitivity of the algorithm. Try to reduce the RedChannelThreshold property slightly. In the Manual mode you can play with additional property, namely Sensitivity.
Inheritance Hierarchy
Thread Safety
Supported Pixel Formats
| Member Name | Description |
|---|---|
| Format24bppRgb | 24 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. |
| Format32bppRgb | 32 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. The rest 8 bits are unused. |
| Format32bppArgb | 32 bits per pixel. RGB with alpha channel. 8 bits each are used for the alpha, red, green, and blue components. |
| Format48bppRgb | 48 bits per pixel. RGB. 16 bits each are used for the red, green, and blue components (extended pixel format). |
| Format64bppArgb | 64 bits per pixel. RGB with alpha channel. 16 bits each are used for the alpha, red, green, and blue components (extended pixel format). |


