Back to Aurora Vision Library Lite website
You are here: Start » Image » Image Features » ImageOrientation
ImageOrientation
Header: | AVL.h |
---|---|
Namespace: | avl |
Computes the orientation of an image using image moments. The result range is from 0.0 to 180.0.
Syntax
void avl::ImageOrientation ( const avl::Image& inImage, atl::Optional<const avl::Region&> inRoi, float& outOrientationAngle )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inImage | const Image& | Input image | ||
inRoi | Optional<const Region&> | NIL | Range of pixels to be processed | |
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. |