CvMoments Method OpenCvSharp Class Library
Moments

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void Moments(
	CvArr image,
	out CvMoments moments,
	bool isBinary
)

Parameters

image
Type: OpenCvSharpCvArr
Image (1-channel or 3-channel with COI set) or polygon (CvSeq of points or a vector of points)
moments
Type: OpenCvSharpCvMoments
Returned moment state structure
isBinary
Type: SystemBoolean
(For images only) If the flag is non-zero, all the zero pixel values are treated as zeroes, all the others are treated as 1’s
See Also

Reference