Click or drag to resize

Cv2Moments Method (InputArray, 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 static Moments Moments(
	InputArray array,
	bool binaryImage = false
)

Parameters

array
Type: OpenCvSharpInputArray
A raster image (single-channel, 8-bit or floating-point 2D array) or an array ( 1xN or Nx1 ) of 2D points ( Point or Point2f )
binaryImage (Optional)
Type: SystemBoolean
If it is true, then all the non-zero image pixels are treated as 1’s

Return Value

Type: Moments

[Missing <returns> documentation for "M:OpenCvSharp.Cv2.Moments(OpenCvSharp.InputArray,System.Boolean)"]

See Also