Back to FabImage Library website
You are here: Start » Function Reference » Region Features » RegionMassCenter_OrNil
Header: | FIL.h |
---|---|
Namespace: | fil |
Computes a point with coordinates equal to the average coordinates of the region's pixels; returns NIL if the region is empty.
Syntax
C++
C#
void fil::RegionMassCenter_OrNil ( const fil::Region& inRegion, ftl::Conditional<fil::Point2D>& outMassCenter )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
outMassCenter | Conditional<Point2D>& |