API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Recognition Image Preprocessing Functions > IG_REC_image_info_get |
Gets information about any image in the recognition engine. This includes dimensions, resolution, color space, bit depth, and channel information of the specified image.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_image_info_get( HIG_REC_IMAGE hImage, HIGDIBINFO* pImgInfo ); |
Name | Type | Description |
---|---|---|
hImage | HIG_REC_IMAGE | Handle of the image. |
pImgInfo | HIGDIBINFO* | Address of an HIGDIBINFO handle to get the image information. Function IG_DIB_info_delete(pImgInfo); must be called if pImgInfo is no longer needed. |
This function does not process image pixels.
Copy Code
|
|
---|---|
AT_ERRCOUNT ErrCount = 0; HIGEAR higImage = 0; HIG_REC_IMAGE higRecImage = 0; HIGDIBINFO ImgInfo = 0; ErrCount += IG_load_file("Image.tif", &higImage); ErrCount += IG_REC_image_import(higImage, &higRecImage); ErrCount += IG_REC_image_info_get(higRecImage, &ImgInfo); //... ErrCount += IG_DIB_info_delete(ImgInfo); ErrCount += IG_REC_image_delete(higRecImage); ErrCount += IG_image_delete(higImage); |