Back to Aurora Vision Library website

You are here: Start » Function Reference » Image » Image Features » ImageOrientation

ImageOrientation


Header: AVL.h
Namespace: avl
Module: FoundationLite

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

Syntax

C++
C#
 
void avl::ImageOrientation
(
	const avl::Image& inImage,
	atl::Optional<const avl::Region&> inRoi,
	float& outOrientationAngle
)

Parameters

Name Type Default Description
Input value inImage const Image& Input image
Input value inRoi Optional<const Region&> NIL Range of pixels to be processed
Output value outOrientationAngle float&

Errors

List of possible exceptions:

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