Back to FabImage Library website
You are here: Start » Function Reference » Surface » Surface Features » SurfaceMassCenter

SurfaceMassCenter
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DStandard |
Computes the mass center of surface points.
Syntax
C++
C#
void fil::SurfaceMassCenter ( const fil::Surface& inSurface, ftl::Optional<const fil::Region&> inRoi, fil::Point3D& outMassCenter )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inSurface | const Surface& | Input surface | |
![]() |
inRoi | Optional<const Region&> | NIL | Region of interest |
![]() |
outMassCenter | Point3D& | Mass center of the surface points |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | No valid point in given region in SurfaceMassCenter. |
DomainError | Region of interest exceeds an input surface in SurfaceMassCenter. |