Start » Filter Reference » Path » Path Features » PathMassCenter

PathMassCenter


Module: FoundationLite

Computes the average of the path points (all, not only characteristic ones).

Name Type Description
Input value
inPath Path Input path
Output value
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

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Empty path on input in PathMassCenter.

Complexity Level

This filter is available on Basic Complexity Level.

Filter Group

This filter is member of PathMassCenter filter group.

See Also

  • RegionMassCenter – Computes a point with coordinates equal to the average coordinates of the region's pixels.