EasyImage::Area

Counts the pixels whose values are above (or on) a threshold.

Namespace: Euresys::Open_eVision

[C++]

void Area(
   const EROIBW8* sourceImage,
   EBW8 threshold,
   int& numberOfPixelsAboveThreshold
)

void Area(
   const EROIBW16* sourceImage,
   EBW16 threshold,
   int& numberOfPixelsAboveThreshold
)

void Area(
   const EROIBW8* sourceImage,
   const ERegion& region,
   EBW8 threshold,
   int& numberOfPixelsAboveThreshold
)

void Area(
   const EROIBW16* sourceImage,
   const ERegion& region,
   EBW16 threshold,
   int& numberOfPixelsAboveThreshold
)

void Area(
   const EROIBW8* sourceImage,
   const EROIBW8* mask,
   EBW8 threshold,
   int& numberOfPixelsAboveThreshold
)

void Area(
   const EROIBW16* sourceImage,
   const EROIBW8* mask,
   EBW16 threshold,
   int& numberOfPixelsAboveThreshold
)

Parameters

sourceImage

Pointer to the source image/ROI.

threshold

The pixel thresholding value used to count the pixels

numberOfPixelsAboveThreshold

Reference to the count of pixels above or equal to the threshold.

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.

EasyImage.Area

Counts the pixels whose values are above (or on) a threshold.

Namespace: Euresys.Open_eVision

[C#]

void Area(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EBW8 threshold,
   out int numberOfPixelsAboveThreshold
)

void Area(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EBW16 threshold,
   out int numberOfPixelsAboveThreshold
)

void Area(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.ERegion region,
   Euresys.Open_eVision.EBW8 threshold,
   out int numberOfPixelsAboveThreshold
)

void Area(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.ERegion region,
   Euresys.Open_eVision.EBW16 threshold,
   out int numberOfPixelsAboveThreshold
)

void Area(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW8 mask,
   Euresys.Open_eVision.EBW8 threshold,
   out int numberOfPixelsAboveThreshold
)

void Area(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EROIBW8 mask,
   Euresys.Open_eVision.EBW16 threshold,
   out int numberOfPixelsAboveThreshold
)

Parameters

sourceImage

Pointer to the source image/ROI.

threshold

The pixel thresholding value used to count the pixels

numberOfPixelsAboveThreshold

Reference to the count of pixels above or equal to the threshold.

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.