Back to FabImage Library website
You are here: Start » Function Reference » Path » Path Features » PathMassCenter
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Computes the average of the path points (all, not only characteristic ones).
Syntax
C++
C#
void fil::PathMassCenter ( const fil::Path& inPath, fil::Point2D& outMassCenter )
Parameters
Description
The operation computes the mass center of a path by averaging its points.
Examples
![]() |
![]() |
The resulting outMassCenters drawn onto the sample paths.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty path on input in PathMassCenter. |
See Also
- RegionMassCenter – Computes a point with coordinates equal to the average coordinates of the region's pixels.
- PolygonMassCenter – Computes the mass center of polygon.