Performs immediate image inversion of the image.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_image_invert( HIG_REC_IMAGE hImageIn, LPAT_RECT lpRect ); |
Name | Type | Description |
---|---|---|
hImageIn | HIG_REC_IMAGE | Handle of the image to be inverted. |
lpRect | AT_RECT | Pointer to the rectangular area to be inverted. If it is NULL the entire image is inverted. |
See IG_REC_image_import.
This function ignores the image inversion mode setting. The inverted image replaces the original one and is available to the recognition engine and the application.
Copy Code
|
|
---|---|
AT_ERRCOUNT ErrCount = 0; HIG_REC_IMAGE higRecImage = 0; HIGEAR higImage = 0; AT_RECT Rect; ErrCount += IG_load_file("Image.tif", &higImage); ErrCount += IG_REC_image_import(higImage, &higRecImage); //... memset(&Rect, 0, sizeof(Rect)); Rect.right = 100; Rect.bottom = 100; ErrCount += IG_REC_image_invert(higRecImage, &Rect); ErrCount += IG_REC_image_recognize(higRecImage); //... ErrCount += IG_REC_image_delete(higRecImage); ErrCount += IG_image_delete(higImage); |