You are here: Start » FIL.NET » Function Reference » Region » Region Features » FIL.RegionMassCenter
Computes a point with coordinates equal to the average coordinates of the region's pixels.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void RegionMassCenter ( FilNet.Region inRegion, out FilNet.Point2D outMassCenter )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRegion | FilNet.Region | Input region. | ||
![]() | outMassCenter | FilNet.Point2D |
Description
The operation computes the average of all pixel locations contained in a region. Note that the result is a Point2D, not a Location as its coordinates may be not-integer.
Examples
![]() |
The resulting outMassCenter point drawn onto the sample region.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Input region is empty in RegionMassCenter. |