You are here: Start » AVL.NET » AVL.ImageOrientation Method

AVL.ImageOrientation Method

Computes the orientation of an image using image moments. The result range is from 0.0 to 180.0.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ImageOrientation(
	AvlNet.Image inImage,
	AvlNet.Region inRoi,
	out float outOrientationAngle
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.RegionRange of pixels to be processed. Default value: atl::NIL, or null.
outOrientationAnglefloat

Errors

Error type Description
DomainError Empty region on input in ImageOrientation.
DomainError Black image on input in ImageOrientation.

See also