ImageGear Professional DLL v17.1 for Windows Accusoft
IG_IP_detect_redeye_area
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_detect_redeye_area

Glossary Item Box

Detects red eye area in the image.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_IP_detect_redeye_area(
        HIGEAR  hIGear, 
        AT_INT  xPos,
        AT_INT  yPos,
        AT_DOUBLE dblThreshold, 
        LPAT_RECT lpRect,  
        AT_NR_ROI_MASK* lpMask
); 

Arguments:

hIGear Image to analyze.
xPos X coordinate of a point inside the area to be detected.
yPos Y coordinate of a point inside the area to be detected.
dblThreshold Area threshold. Value in the range 0.5..2 that specifies a part of the red component in the pixel color.
lpRect Rectangular area to apply the effect to, or NULL for whole image.
lpMask Returns the ROI mask.

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.

©2012. Accusoft Corporation. All Rights Reserved.