ImageGear for C and C++ on Windows v20.0 - Updated
IG_IP_remove_redeye
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Image Processing Functions > IG_IP_remove_redeye

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:

Name Type Description
hIGear HIGEAR Image to process.
dblThreshold AT_DOUBLE A value in the range 0.5..2 that specifies a part of the red component in the pixel color.
dblBrightness AT_DOUBLE Scaling factor for brightness of the pixel after processing. The range is -1...1.
lpRect LPAT_RECT 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.

Is this page helpful?
Yes No
Thanks for your feedback.