Back to Adaptive Vision Library website
You are here: Start » Function Reference » Image Features » ImageMassCenter
ImageMassCenter
Computes a point with coordinates equal to image mass center in brightness scale.
Header: | AVL.h |
---|
Syntax
C++
C#
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
Error type | Description |
---|---|
DomainError | Empty region on input in ImageMassCenter. |
DomainError | Black image on input in ImageMassCenter. |