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 characteristics including 7 Hu invariants.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public MCvMoments GetMoments(
	bool binary
)
Visual Basic
Public Function GetMoments ( 
	binary As Boolean
) As MCvMoments
Visual C++
public:
MCvMoments GetMoments(
	bool binary
)
F#
member GetMoments : 
        binary : bool -> MCvMoments 

Parameters

binary
Type: System..::..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

Type: MCvMoments
spatial and central moments up to the third order

See Also