Click or drag to resize
Accord.NET (logo)

DocumentSkewCheckerGetSkewAngle Method (BitmapData)

Get skew angle of the provided document image.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.6.0
Syntax
public double GetSkewAngle(
	BitmapData imageData
)
Request Example View Source

Parameters

imageData
Type: System.Drawing.ImagingBitmapData
Document's image data to get skew angle of.

Return Value

Type: Double
Returns document's skew angle. If the returned angle equals to -90, then document skew detection has failed.
Exceptions
ExceptionCondition
UnsupportedImageFormatExceptionUnsupported pixel format of the source image.
See Also