[This is preliminary documentation and is subject to change.]

Retrieves the spatial moment, which in case of image moments is defined as: MxOrder,yOrder=sumx,y(I(x,y) * xxOrder * yyOrder) where I(x,y) is the intensity of the pixel (x, y).

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public static double cvGetSpatialMoment(
	ref MCvMoments moments,
	int xOrder,
	int yOrder
)
Public Shared Function cvGetSpatialMoment ( _
	ByRef moments As MCvMoments, _
	xOrder As Integer, _
	yOrder As Integer _
) As Double
public:
static double cvGetSpatialMoment(
	MCvMoments% moments, 
	int xOrder, 
	int yOrder
)

Parameters

moments
MCvMoments %
The moment state
xOrder
Int32
x order of the retrieved moment, xOrder >= 0.
yOrder
Int32
y order of the retrieved moment, yOrder >= 0 and xOrder + y_order <= 3

Return Value

The spatial moment

See Also