Detects an area of pixels using a user-defined pixel checker and returns the area being detected as a ROI structure.
Declaration:
Copy Code | |
---|---|
AT_ERRCOUNT ACCUAPI IG_IP_detect_area( HIGEAR hIGear, AT_INT xPos, AT_INT yPos, LPAT_VOID detectStruct, LPFNIG_CHECK_PIXEL detectFunc, 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 | X coordinate of a point inside the area to be detected. |
detectStruct | A pointer to a user-defined structure that will be passed to the callback function. See LPFNIG_CHECK_PIXEL. |
detectFunc | Callback function that checks whether specified pixel belongs to the area or not. |
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:
All pixel formats supported by ImageGear Professional.
Actual set of pixel formats supported by this function can be narrower, depending on the implementation of the user-defined callback function. |