Emgu CV Library Documentation
GetMoments Method (binary)
NamespacesEmgu.CVImage<(Of <(TColor, TDepth>)>)GetMoments(Boolean)

www.emgu.com/wiki
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.
Declaration Syntax
C#Visual BasicVisual C++
public MCvMoments GetMoments(
	bool binary
)
Public Function GetMoments ( _
	binary As Boolean _
) As MCvMoments
public:
MCvMoments GetMoments(
	bool binary
)
Parameters
binary (Boolean)
If the flag is true, all the zero pixel values are treated as zeroes, all the others are treated as 1's
Return Value
spatial and central moments up to the third order

Assembly: Emgu.CV (Module: Emgu.CV) Version: 1.3.0.0 (1.3.0.0)