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).

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 )

- 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

The spatial moment