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
Input value inRegion Region Input region
Output value outMassCenter Point2D | None
Output value outArea int | None