Get skew angle of the provided document image.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public double GetSkewAngle(
	UnmanagedImage image
)

Parameters

image
Type: AForge.Imaging..::.UnmanagedImage
Document's unmanaged image to get skew angle of.

Return Value

Returns document's skew angle. If the returned angle equals to -90, then document skew detection has failed.

Exceptions

ExceptionCondition
AForge.Imaging..::.UnsupportedImageFormatExceptionUnsupported pixel format of the source image.

See Also