http://www.emgu.com
Retrieves the spatial moment, which in case of image moments is defined as: M_{x_order,y_order}=sum_{x,y}(I(x,y) * x^{x_order} * y^{y_order}) where I(x,y) is the intensity of the pixel (x, y).

Namespace: Emgu.CV.Structure
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.2.1777 (2.4.2.1777)

Syntax

C#
public double GetSpatialMoment(
	int xOrder,
	int yOrder
)
Visual Basic
Public Function GetSpatialMoment ( _
	xOrder As Integer, _
	yOrder As Integer _
) As Double
Visual C++
public:
double GetSpatialMoment(
	int xOrder, 
	int yOrder
)

Parameters

xOrder
Type: System..::..Int32
x order of the retrieved moment, x_order >= 0
yOrder
Type: System..::..Int32
y order of the retrieved moment, y_order >= 0 and x_order + y_order <= 3

Return Value

The spatial moment of the specific order

See Also