CvInvokecvGetSpatialMoment Method |
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.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 3.0.0.2161 (3.0.0.2161)
Syntaxpublic 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
)
static member cvGetSpatialMoment :
moments : MCvMoments byref *
xOrder : int *
yOrder : int -> float
Parameters
- moments
- Type: Emgu.CV.StructureMCvMoments
The moment state - xOrder
- Type: SystemInt32
x order of the retrieved moment, xOrder >= 0. - yOrder
- Type: SystemInt32
y order of the retrieved moment, yOrder >= 0 and xOrder + y_order <= 3
Return Value
Type:
DoubleThe spatial moment
See Also