Back to Adaptive Vision Library website
You are here: Start » Function Reference » Path Features » PathMassCenter
PathMassCenter
Computes the average of the path points (all, not only characteristic ones).
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::PathMassCenter ( const avl::Path& inPath, avl::Point2D& outMassCenter )
Parameters
Description
The operation computes the mass center of a path by averaging its points.
Examples
Errors
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.
- ShapeMassCenter – Computes the mass center of a shape.