EasyImage::PixelCount

Counts the pixels in the three value classes separated by two thresholds.

Namespace: Euresys::Open_eVision

[C++]

void PixelCount(
   const EROIBW8* sourceImage,
   EBW8 lowThreshold,
   EBW8 highThreshold,
   int& numberOfPixelsBelowThreshold,
   int& numberOfPixelsBetweenThresholds,
   int& numberOfPixelsAboveThreshold
)

void PixelCount(
   const EROIBW16* sourceImage,
   EBW16 lowThreshold,
   EBW16 highThreshold,
   int& numberOfPixelsBelowThreshold,
   int& numberOfPixelsBetweenThresholds,
   int& numberOfPixelsAboveThreshold
)

void PixelCount(
   const EROIBW8* sourceImage,
   const ERegion& region,
   EBW8 lowThreshold,
   EBW8 highThreshold,
   int& numberOfPixelsBelowThreshold,
   int& numberOfPixelsBetweenThresholds,
   int& numberOfPixelsAboveThreshold
)

void PixelCount(
   const EROIBW16* sourceImage,
   const ERegion& region,
   EBW16 lowThreshold,
   EBW16 highThreshold,
   int& numberOfPixelsBelowThreshold,
   int& numberOfPixelsBetweenThresholds,
   int& numberOfPixelsAboveThreshold
)

void PixelCount(
   const EROIBW8* sourceImage,
   const ERegion& region,
   EBW8 lowThreshold,
   EBW8 highThreshold,
   OEV_UINT64& numberOfPixelsBelowThreshold,
   OEV_UINT64& numberOfPixelsBetweenThresholds,
   OEV_UINT64& numberOfPixelsAboveThreshold
)

void PixelCount(
   const EROIBW16* sourceImage,
   const ERegion& region,
   EBW16 lowThreshold,
   EBW16 highThreshold,
   OEV_UINT64& numberOfPixelsBelowThreshold,
   OEV_UINT64& numberOfPixelsBetweenThresholds,
   OEV_UINT64& numberOfPixelsAboveThreshold
)

void PixelCount(
   const EROIBW8* sourceImage,
   EBW8 lowThreshold,
   EBW8 highThreshold,
   OEV_UINT64& numberOfPixelsBelowThreshold,
   OEV_UINT64& numberOfPixelsBetweenThresholds,
   OEV_UINT64& numberOfPixelsAboveThreshold
)

void PixelCount(
   const EROIBW16* sourceImage,
   EBW16 lowThreshold,
   EBW16 highThreshold,
   OEV_UINT64& numberOfPixelsBelowThreshold,
   OEV_UINT64& numberOfPixelsBetweenThresholds,
   OEV_UINT64& numberOfPixelsAboveThreshold
)

void PixelCount(
   const EROIBW8* sourceImage,
   const EROIBW8* mask,
   EBW8 lowThreshold,
   EBW8 highThreshold,
   int& numberOfPixelsBelowThreshold,
   int& numberOfPixelsBetweenThresholds,
   int& numberOfPixelsAboveThreshold
)

void PixelCount(
   const EROIBW16* sourceImage,
   const EROIBW8* mask,
   EBW16 lowThreshold,
   EBW16 highThreshold,
   int& numberOfPixelsBelowThreshold,
   int& numberOfPixelsBetweenThresholds,
   int& numberOfPixelsAboveThreshold
)

void PixelCount(
   const EROIBW8* sourceImage,
   const EROIBW8* mask,
   EBW8 lowThreshold,
   EBW8 highThreshold,
   OEV_UINT64& numberOfPixelsBelowThreshold,
   OEV_UINT64& numberOfPixelsBetweenThresholds,
   OEV_UINT64& numberOfPixelsAboveThreshold
)

void PixelCount(
   const EROIBW16* sourceImage,
   const EROIBW8* mask,
   EBW16 lowThreshold,
   EBW16 highThreshold,
   OEV_UINT64& numberOfPixelsBelowThreshold,
   OEV_UINT64& numberOfPixelsBetweenThresholds,
   OEV_UINT64& numberOfPixelsAboveThreshold
)

Parameters

sourceImage

Pointer to the source image/ROI.

lowThreshold

Inferior threshold.

highThreshold

Superior threshold.

numberOfPixelsBelowThreshold

Reference to the count of pixels strictly below the inferior threshold.

numberOfPixelsBetweenThresholds

Reference to the count of pixels above or equal to the inferior threshold, and strictly below the superior threshold.

numberOfPixelsAboveThreshold

Reference to the count of pixels above or equal to the superior 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.PixelCount

Counts the pixels in the three value classes separated by two thresholds.

Namespace: Euresys.Open_eVision

[C#]

void PixelCount(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EBW8 lowThreshold,
   Euresys.Open_eVision.EBW8 highThreshold,
   out int numberOfPixelsBelowThreshold,
   out int numberOfPixelsBetweenThresholds,
   out int numberOfPixelsAboveThreshold
)

void PixelCount(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EBW16 lowThreshold,
   Euresys.Open_eVision.EBW16 highThreshold,
   out int numberOfPixelsBelowThreshold,
   out int numberOfPixelsBetweenThresholds,
   out int numberOfPixelsAboveThreshold
)

void PixelCount(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.ERegion region,
   Euresys.Open_eVision.EBW8 lowThreshold,
   Euresys.Open_eVision.EBW8 highThreshold,
   out int numberOfPixelsBelowThreshold,
   out int numberOfPixelsBetweenThresholds,
   out int numberOfPixelsAboveThreshold
)

void PixelCount(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.ERegion region,
   Euresys.Open_eVision.EBW16 lowThreshold,
   Euresys.Open_eVision.EBW16 highThreshold,
   out int numberOfPixelsBelowThreshold,
   out int numberOfPixelsBetweenThresholds,
   out int numberOfPixelsAboveThreshold
)

void PixelCount(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.ERegion region,
   Euresys.Open_eVision.EBW8 lowThreshold,
   Euresys.Open_eVision.EBW8 highThreshold,
   out System.UInt64 numberOfPixelsBelowThreshold,
   out System.UInt64 numberOfPixelsBetweenThresholds,
   out System.UInt64 numberOfPixelsAboveThreshold
)

void PixelCount(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.ERegion region,
   Euresys.Open_eVision.EBW16 lowThreshold,
   Euresys.Open_eVision.EBW16 highThreshold,
   out System.UInt64 numberOfPixelsBelowThreshold,
   out System.UInt64 numberOfPixelsBetweenThresholds,
   out System.UInt64 numberOfPixelsAboveThreshold
)

void PixelCount(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EBW8 lowThreshold,
   Euresys.Open_eVision.EBW8 highThreshold,
   out System.UInt64 numberOfPixelsBelowThreshold,
   out System.UInt64 numberOfPixelsBetweenThresholds,
   out System.UInt64 numberOfPixelsAboveThreshold
)

void PixelCount(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EBW16 lowThreshold,
   Euresys.Open_eVision.EBW16 highThreshold,
   out System.UInt64 numberOfPixelsBelowThreshold,
   out System.UInt64 numberOfPixelsBetweenThresholds,
   out System.UInt64 numberOfPixelsAboveThreshold
)

void PixelCount(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW8 mask,
   Euresys.Open_eVision.EBW8 lowThreshold,
   Euresys.Open_eVision.EBW8 highThreshold,
   out int numberOfPixelsBelowThreshold,
   out int numberOfPixelsBetweenThresholds,
   out int numberOfPixelsAboveThreshold
)

void PixelCount(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EROIBW8 mask,
   Euresys.Open_eVision.EBW16 lowThreshold,
   Euresys.Open_eVision.EBW16 highThreshold,
   out int numberOfPixelsBelowThreshold,
   out int numberOfPixelsBetweenThresholds,
   out int numberOfPixelsAboveThreshold
)

void PixelCount(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW8 mask,
   Euresys.Open_eVision.EBW8 lowThreshold,
   Euresys.Open_eVision.EBW8 highThreshold,
   out System.UInt64 numberOfPixelsBelowThreshold,
   out System.UInt64 numberOfPixelsBetweenThresholds,
   out System.UInt64 numberOfPixelsAboveThreshold
)

void PixelCount(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EROIBW8 mask,
   Euresys.Open_eVision.EBW16 lowThreshold,
   Euresys.Open_eVision.EBW16 highThreshold,
   out System.UInt64 numberOfPixelsBelowThreshold,
   out System.UInt64 numberOfPixelsBetweenThresholds,
   out System.UInt64 numberOfPixelsAboveThreshold
)

Parameters

sourceImage

Pointer to the source image/ROI.

lowThreshold

Inferior threshold.

highThreshold

Superior threshold.

numberOfPixelsBelowThreshold

Reference to the count of pixels strictly below the inferior threshold.

numberOfPixelsBetweenThresholds

Reference to the count of pixels above or equal to the inferior threshold, and strictly below the superior threshold.

numberOfPixelsAboveThreshold

Reference to the count of pixels above or equal to the superior 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.