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).
Syntax
C++
C#
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPath | const Path& | Input path | |
![]() |
outMassCenter | Point2D& |
Description
The operation computes the mass center of a path by averaging its points.
Examples
|
|
The resulting outMassCenters drawn onto the sample paths.
Errors
| Error type | Description |
|---|---|
| DomainError | Empty path on input in PathMassCenter. |


