Back to FabImage Library website

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

SurfaceMassCenter_OrNil


Header: FIL.h
Namespace: fil
Module: Vision3DStandard

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

Syntax

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

Parameters

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

Errors

List of possible exceptions:

Error type Description
DomainError Region of interest exceeds an input surface in SurfaceMassCenter_OrNil.