Back to Adaptive Vision Library Lite website
You are here: Start » Region Features » RegionMassCenter_OrNil
![](../../img/icon/RegionAnalysis.png)
RegionMassCenter_OrNil
Computes a point with coordinates equal to the average coordinates of the region's pixels; returns NIL if the region is empty.
Syntax
void avl::RegionMassCenter_OrNil ( const avl::Region& inRegion, atl::Conditional<avl::Point2D>& outMassCenter )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
outMassCenter | Conditional<Point2D>& |