This documentation is for the old version. Go to the latest Graphics Mill docs

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:

  1. Select the face of the person whose eyes should be processed. The selection should be specified by the FaceRegion property.
  2. 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.

Note

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.

Inheritance Hierarchy

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.

Object Model




Supported Pixel Formats

Member NameDescription
Format24bppRgb24 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components.
Format32bppRgb32 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. The rest 8 bits are unused.
Format32bppArgb32 bits per pixel. RGB with alpha channel. 8 bits each are used for the alpha, red, green, and blue components.
Format48bppRgb48 bits per pixel. RGB. 16 bits each are used for the red, green, and blue components (extended pixel format).
Format64bppArgb64 bits per pixel. RGB with alpha channel. 16 bits each are used for the alpha, red, green, and blue components (extended pixel format).

See Also

Reference