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
C++
Python
def RegionMassCenter_OrNil( inRegion: Region, / ) -> ( outMassCenter: Point2D | None, outArea: int | None )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inRegion | Region | Input region | |
![]() |
outMassCenter | Point2D | None | ||
![]() |
outArea | int | None |


