CogPolygon AreaMoments2 Method Cognex VisionPro
Compute the zeroth, first, and second moments of area of this polygon. Results will be zero if there are fewer than 3 vertices.

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

public void AreaMoments2(
	out double sum,
	out double sumX,
	out double sumY,
	out double sumXX,
	out double sumYY,
	out double sumXY
)

Parameters

sum
Type: System Double 

Integral of the function 1 over the area of the polygon.

sumX
Type: System Double 

Integral of the function x over the area of the polygon.

sumY
Type: System Double 

Integral of the function y over the area of the polygon.

sumXX
Type: System Double 

Integral of the function x2 over the area of the polygon.

sumYY
Type: System Double 

Integral of the function y2 over the area of the polygon.

sumXY
Type: System Double 

Integral of the function xy over the area of the polygon.

Remarks

Compute the zeroth, first, and second moments of area of this polygon. All results are zero if NumVertices is less than 3.

See Also