Back to Aurora Vision Library website

You are here: Start » Function Reference » Region » Region Features » RegionMassCenter_OrNil

RegionMassCenter_OrNil


Header: AVL.h
Namespace: avl
Module: FoundationLite

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 avl::RegionMassCenter_OrNil
(
	const avl::Region& inRegion,
	atl::Conditional<avl::Point2D>& outMassCenter,
	atl::Optional<atl::Conditional<int>&> outArea = atl::NIL
)

Parameters

Name Type Default Description
Input value inRegion const Region& Input region
Output value outMassCenter Conditional<Point2D>&
Output value outArea Optional<Conditional<int>&> NIL

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outArea.

Read more about Optional Outputs.