EasyImage::BinaryMoments

Computes the zero-th, first or second order moments on the binarized image, i.e. with a unit weight for those pixels with a value above or equal to the threshold, and zero otherwise.

Namespace: Euresys::Open_eVision

[C++]

void BinaryMoments(
   const EROIBW8* sourceImage,
   OEV_UINT32 threshold,
   float& M,
   float& Mx,
   float& My
)

void BinaryMoments(
   const EROIBW16* sourceImage,
   OEV_UINT32 threshold,
   float& M,
   float& Mx,
   float& My
)

void BinaryMoments(
   const EROIBW8* sourceImage,
   const ERegion& region,
   OEV_UINT32 threshold,
   float& M,
   float& Mx,
   float& My
)

void BinaryMoments(
   const EROIBW16* sourceImage,
   const ERegion& region,
   OEV_UINT32 threshold,
   float& M,
   float& Mx,
   float& My
)

void BinaryMoments(
   const EROIBW8* sourceImage,
   const EROIBW8* mask,
   OEV_UINT32 threshold,
   float& M,
   float& Mx,
   float& My
)

void BinaryMoments(
   const EROIBW16* sourceImage,
   const EROIBW8* mask,
   OEV_UINT32 threshold,
   float& M,
   float& Mx,
   float& My
)

void BinaryMoments(
   const EROIBW8* sourceImage,
   OEV_UINT32 threshold,
   float& M,
   float& Mx,
   float& My,
   float& Mxx,
   float& Mxy,
   float& Myy
)

void BinaryMoments(
   const EROIBW16* sourceImage,
   OEV_UINT32 threshold,
   float& M,
   float& Mx,
   float& My,
   float& Mxx,
   float& Mxy,
   float& Myy
)

void BinaryMoments(
   const EROIBW8* sourceImageconst,
   const ERegion& region,
   OEV_UINT32 threshold,
   float& M,
   float& Mx,
   float& My,
   float& Mxx,
   float& Mxy,
   float& Myy
)

void BinaryMoments(
   const EROIBW16* sourceImage,
   const ERegion& region,
   OEV_UINT32 threshold,
   float& M,
   float& Mx,
   float& My,
   float& Mxx,
   float& Mxy,
   float& Myy
)

void BinaryMoments(
   const EROIBW8* sourceImage,
   const EROIBW8* mask,
   OEV_UINT32 threshold,
   float& M,
   float& Mx,
   float& My,
   float& Mxx,
   float& Mxy,
   float& Myy
)

void BinaryMoments(
   const EROIBW16* sourceImage,
   const EROIBW8* mask,
   OEV_UINT32 threshold,
   float& M,
   float& Mx,
   float& My,
   float& Mxx,
   float& Mxy,
   float& Myy
)

Parameters

sourceImage

Pointer to the source image/ROI.

threshold

Binarization threshold.

M

Reference to the zero-th order moment (area).

Mx

Reference to the first-order, uncentered moments (weighted sum of abscissas).

My

Reference to the first-order, uncentered moments (weighted sum of ordinates).

region

Pointer to a region to apply the function only on a particular region in the image.

mask

Pointer to a mask to apply the function only on a particular region in the image. Note: the mask must have the same size as the source image.

Mxx

Reference to the second-order, uncentered moments (weighted sum of squared abscissas).

Mxy

Reference to the second-order, uncentered moments (weighted sum of cross-product of abscissas and ordinates).

Myy

Reference to the second-order, uncentered moments (weighted sum of squared ordinates).

sourceImageconst

-

EasyImage.BinaryMoments

Computes the zero-th, first or second order moments on the binarized image, i.e. with a unit weight for those pixels with a value above or equal to the threshold, and zero otherwise.

Namespace: Euresys.Open_eVision

[C#]

void BinaryMoments(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   uint threshold,
   out float M,
   out float Mx,
   out float My
)

void BinaryMoments(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   uint threshold,
   out float M,
   out float Mx,
   out float My
)

void BinaryMoments(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.ERegion region,
   uint threshold,
   out float M,
   out float Mx,
   out float My
)

void BinaryMoments(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.ERegion region,
   uint threshold,
   out float M,
   out float Mx,
   out float My
)

void BinaryMoments(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW8 mask,
   uint threshold,
   out float M,
   out float Mx,
   out float My
)

void BinaryMoments(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EROIBW8 mask,
   uint threshold,
   out float M,
   out float Mx,
   out float My
)

void BinaryMoments(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   uint threshold,
   out float M,
   out float Mx,
   out float My,
   out float Mxx,
   out float Mxy,
   out float Myy
)

void BinaryMoments(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   uint threshold,
   out float M,
   out float Mx,
   out float My,
   out float Mxx,
   out float Mxy,
   out float Myy
)

void BinaryMoments(
   Euresys.Open_eVision.EROIBW8 sourceImageconst,
   Euresys.Open_eVision.ERegion region,
   uint threshold,
   out float M,
   out float Mx,
   out float My,
   out float Mxx,
   out float Mxy,
   out float Myy
)

void BinaryMoments(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.ERegion region,
   uint threshold,
   out float M,
   out float Mx,
   out float My,
   out float Mxx,
   out float Mxy,
   out float Myy
)

void BinaryMoments(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW8 mask,
   uint threshold,
   out float M,
   out float Mx,
   out float My,
   out float Mxx,
   out float Mxy,
   out float Myy
)

void BinaryMoments(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EROIBW8 mask,
   uint threshold,
   out float M,
   out float Mx,
   out float My,
   out float Mxx,
   out float Mxy,
   out float Myy
)

Parameters

sourceImage

Pointer to the source image/ROI.

threshold

Binarization threshold.

M

Reference to the zero-th order moment (area).

Mx

Reference to the first-order, uncentered moments (weighted sum of abscissas).

My

Reference to the first-order, uncentered moments (weighted sum of ordinates).

region

Pointer to a region to apply the function only on a particular region in the image.

mask

Pointer to a mask to apply the function only on a particular region in the image. Note: the mask must have the same size as the source image.

Mxx

Reference to the second-order, uncentered moments (weighted sum of squared abscissas).

Mxy

Reference to the second-order, uncentered moments (weighted sum of cross-product of abscissas and ordinates).

Myy

Reference to the second-order, uncentered moments (weighted sum of squared ordinates).

sourceImageconst

-