This class represents red eye effect removal transform.
Namespace:
Aurigma.GraphicsMill.Transforms
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public NotInheritable Class RedEyeRemoval _ Inherits BitmapTransform
public sealed class RedEyeRemoval : BitmapTransform
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:
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.
Both modes analyzes facial features when deciding what red pixels should be suppressed and what ones shold not. This way the algorithm reduces probability of malfunction (i.e. mistake reddish areas of the face or background for red eyes). The more precise the user selects the face, the more accurate red eye effect removal will be. Also, if the user works in the Manual mode, they need try to click inside the red area of an eye. If the user clicks, say, white area of the flash reflection, the algorithm will not be able to fix red eye effect.
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). |