Click or drag to resize

CvInvokeMoments Method
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: (
public static Moments Moments(
	IInputArray arr,
	bool binaryImage = false


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: Moments
The moment
See Also