The function GetSpatialMoment retrieves the spatial moment, which in case of image moments is defined as:
Mx_order,y_order=sumx,y(I(x,y)•xx_order•yy_order)
where I(x,y) is the intensity of the pixel (x, y).


the spatial moment