ImageGear Professional v18.2 > API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Image Processing Functions > IG_REC_image_skew_detect |
Detects the orientation and the skew of the image specified.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_image_skew_detect( HIG_REC_IMAGE hImage, LPAT_INT pSlope, enumIGRecImgRotate* pImgRotate ); |
Name | Type | Description |
hImage | HIG_REC_IMAGE | Handle of the image. |
pSlope | LPAT_INT | Detects the skew of the image specified. |
pImgRotate | enumIGRecImgRotate* | Detects the orientation and the image specified. |
See IG_REC_image_import.
Copy Code
|
|
---|---|
AT_ERRCOUNT ErrCount = 0; HIGEAR higImage = 0; HIG_REC_IMAGE higRecImage = 0; AT_INT nSlope = 0; enumIGRecImgRotate eImgRotate = IG_REC_IMG_ROTATE_AUTO; ErrCount += IG_load_file("Image.tif", &higImage); ErrCount += IG_REC_image_import(higImage, &higRecImage); ErrCount += IG_REC_image_skew_detect(higRecImage, &nSlope, &eImgRotate); //... ErrCount += IG_REC_image_delete(higRecImage); ErrCount += IG_image_delete(higImage); |
Depending on the current setting of the Image deskewing and Image rotation modes, this function returns either with the detected image skew / orientation or with the current values of these settings.