Back to FabImage Library Lite website
You are here: Start » Region » Region Features » RegionMassCenter_OrNil
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
void fil::RegionMassCenter_OrNil ( const fil::Region& inRegion, ftl::Conditional<fil::Point2D>& outMassCenter, ftl::Optional<ftl::Conditional<int>&> outArea = ftl::NIL )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
outMassCenter | Conditional<Point2D>& | ||
![]() |
outArea | Optional<Conditional<int>&> | NIL |
Optional Outputs
The computation of following outputs can be switched off by passing value ftl::NIL to these parameters: outArea.
Read more about Optional Outputs.


