Back to Adaptive Vision Library website

You are here: Start » Function Reference » Surface Features » SurfaceMassCenter_OrNil

SurfaceMassCenter_OrNil


Header:AVL.h
Namespace:avl

Computes the mass center of surface points; returns NIL if the surface is empty in the given region.

Syntax

C++
C#
 
void avl::SurfaceMassCenter_OrNil
(
	const avl::Surface& inSurface,
	atl::Optional<const avl::Region&> inRoi,
	atl::Conditional<avl::Point3D>& outMassCenter
)

Parameters

Name Type Default Description
inSurface const Surface& Input surface
inRoi Optional<const Region&> NIL Region of interest
outMassCenter Conditional<Point3D>& Mass center of the surface points