Click or drag to resize

Moments Constructor (Single, Boolean)

Calculates all of the moments up to the third order of a polygon or rasterized shape.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public Moments(
	float[,] array,
	bool binaryImage = false
)

Parameters

array
Type: SystemSingle
A raster image (floating-point) 2D array
binaryImage (Optional)
Type: SystemBoolean
If it is true, then all the non-zero image pixels are treated as 1’s

Return Value

Type: 
See Also