Click or drag to resize
CvInvokeMoments Method
http://www.emgu.com
Calculates spatial and central moments up to the third order and writes them to moments. The moments may be used then to calculate gravity center of the shape, its area, main axises and various shape characeteristics including 7 Hu invariants.

Namespace: Emgu.CV
Assembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.1.0.2282 (3.1.0.2282)
Syntax
public static MCvMoments Moments(
	IInputArray arr,
	bool binaryImage = false
)

Parameters

arr
Type: Emgu.CVIInputArray
Image (1-channel or 3-channel with COI set) or polygon (CvSeq of points or a vector of points)
binaryImage (Optional)
Type: SystemBoolean
(For images only) If the flag is true, all the zero pixel values are treated as zeroes, all the others are treated as 1s

Return Value

Type: MCvMoments
The moment
See Also