CogGeneralContour PathLengthCenterOfMass Method Cognex VisionPro 9.7
Computes the center of mass of the contour as if the mass were uniformly distributed along the segments.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax

public void PathLengthCenterOfMass(
	out double x,
	out double y
)

Parameters

x
Type: System Double 

X-coordinate of the center of mass.

y
Type: System Double 

Y-coordinate of the center of mass.

Exceptions

ExceptionCondition
CogShapeDegenerateContourException

The contour contains no segments.

Remarks

Computes the center of mass of the contour as if the mass were uniformly distributed along the segments.

See Also