ImgEvaluateSkew
Previous  Top  Next

Prototype

floatAngle:=ImgEvaluateSkew(intImageHandle, intRange, floatResolution, intStep)

Description

It evaluates skew angle for the image.

Parameters

intImageHandle: integer value corresponding to the image handle.
intRange: integer value that specifies the range of deskewing (between -SpecifiedValue and +SpecifiedValue);
floatResolution: resolution used in deskew procedure.
intStep:
rows step in the cycle that reads and analyzes rows of the image (0: Automatic; 1:All the rows)

Returned value

Float value with calculated skew angle.

Notes

To evaluate and correct skew use ImgDeskew.

Example

//Find skew angle
angle:=ImgEvaluateSkew(_CurrentImage, 5, 0.1, 0);

//It shows a message 
ApplicationLog(_CurrentAgent,'Skew angle is: '+ FloatToStr(angle) +'°.');