Back to Aurora Vision Library Lite website
You are here: Start » Image » Image Features » ImageMassCenter
ImageMassCenter
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
Computes a point with coordinates equal to image mass center in brightness scale.
Syntax
void avl::ImageMassCenter ( const avl::Image& inImage, atl::Optional<const avl::Region&> inRoi, avl::Point2D& outMassCenter )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inImage | const Image& | Input image | |
![]() |
inRoi | Optional<const Region&> | NIL | Range of pixels to be processed |
![]() |
outMassCenter | Point2D& |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Black image on input in ImageMassCenter. |
| DomainError | Empty region on input in ImageMassCenter. |
| DomainError | Region exceeds an input image in ImageMassCenter. |


