Computes the center of mass of the contour as if the mass were uniformly distributed along the segments.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- x
- Type: System Double
X-coordinate of the center of mass.
- y
- Type: System Double
Y-coordinate of the center of mass.
Exceptions
| Exception | Condition |
|---|---|
| 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