ImageGear Professional v18.2 > API Reference Guide > ImageClean Component API Reference > ImageClean Component Functions Reference > IG_IC_check_for_noise |
This function checks the image for the number of objects exceeding the size of the specified threshold value.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_IC_check_for_noise ( HIGEAR hIGear, UINT nObjectSize, LPUINT lpnObjectsAmount ); |
Name | Type | Description |
hIGear | HIGEAR | HIGEAR handle of image. |
nObjectSize | UINT | Object size threshold value. |
lpnObjectsAmount | LPUINT | Pointer to variable to which to place the result. |
If the function is successful, the return value is IGE_SUCCESS. If the function fails, the return value is the error count.
Indexed RGB – 1 bpp.
None
Object here means a connected group of black pixels. The object size is a diagonal of the minimum circumscribed rectangle that contains the object.
This function can be used to detect blank paper sheets in the scanner tray when the resulting image is almost clear and may contains only several black "noise" pixels.
Refer to the Component Manager API section.