Back to Adaptive Vision Library website
You are here: Start » Function Reference » Image Features » ImageOrientation
ImageOrientation
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, atl::real& outOrientationAngle )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inImage | const Image& | Input image | |
![]() |
inRoi | Optional<const Region&> | NIL | Range of pixels to be processed |
![]() |
outOrientationAngle | real& |
Errors
| Error type | Description |
|---|---|
| DomainError | Empty region on input in ImageOrientation. |
| DomainError | Black image on input in ImageOrientation. |


