ImageGear Professional DLL v17.1 for Windows Accusoft
IG_IP_remove_redeye
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Image Processing Effects Functions > IG_IP_remove_redeye

Glossary Item Box

This function processes the given image using a redeye removal algorithm.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_IP_remove_redeye(
        HIGEAR hIGear, 
        AT_DOUBLE dblThreshold,
        AT_DOUBLE dblBrightness,
        LPAT_RECT lpRect
); 

Arguments:

hIGear Image to process.
dblThreshold A value in the range 0.5..2 that specifies a part of the red component in the pixel color.
dblBrightness Scaling factor for brightness of the pixel after processing. The range is -1...1.
lpRect Rectangular area to apply the effect to, or NULL for whole image.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

RGB – 3…48 bpp;
RGBA, RGBPA – 4..64 bpp;
RGBEx, RGBAEx, RGBPAEx – 1…16 bpc;
CMYK – 32 bpp.

Remarks:

The algorithm can be applied to the entire image, to a rectangular ROI defined by the lpRect parameter, or to a non-rectangular ROI set using the IG_IP_NR_ROI_mask_associate function. The function IG_IP_detect_redeye_area can assist in defining a non-rectanular ROI suitable for use with this function.

©2012. Accusoft Corporation. All Rights Reserved.