EasyImage::DoubleThreshold

Converts an image by setting all pixels below the low threshold to a low value, all pixels above the high threshold to a high value, and the remaining pixels to an intermediate value.

Namespace: Euresys::Open_eVision

[C++]

void DoubleThreshold(
   EROIBW8* sourceImage,
   EROIBW8* destinationImage,
   OEV_UINT32 lowThreshold,
   OEV_UINT32 highThreshold,
   OEV_UINT8 lowValue,
   OEV_UINT8 middleValue,
   OEV_UINT8 highValue
)

void DoubleThreshold(
   EROIBW16* sourceImage,
   EROIBW16* destinationImage,
   OEV_UINT32 lowThreshold,
   OEV_UINT32 highThreshold,
   EBW16 lowValue,
   EBW16 middleValue,
   EBW16 highValue
)

void DoubleThreshold(
   EROIBW16* sourceImage,
   EROIBW16* destinationImage,
   OEV_UINT32 lowThreshold,
   OEV_UINT32 highThreshold
)

void DoubleThreshold(
   const EROIBW8* sourceImage,
   const ERegion& region,
   EROIBW8* destinationImage,
   OEV_UINT32 lowThreshold,
   OEV_UINT32 highThreshold,
   OEV_UINT8 lowValue,
   OEV_UINT8 middleValue,
   OEV_UINT8 highValue
)

void DoubleThreshold(
   const EROIBW16* sourceImage,
   const ERegion& region,
   EROIBW16* destinationImage,
   OEV_UINT32 lowThreshold,
   OEV_UINT32 highThreshold,
   EBW16 lowValue,
   EBW16 middleValue,
   EBW16 highValue
)

void DoubleThreshold(
   const EROIBW16* sourceImage,
   const ERegion& region,
   EROIBW16* destinationImage,
   OEV_UINT32 lowThreshold,
   OEV_UINT32 highThreshold
)

Parameters

sourceImage

Pointer to the source image/ROI.

destinationImage

Pointer to the destination image/ROI.

lowThreshold

Low threshold value.

highThreshold

High threshold value.

lowValue

Value for pixels strictly below the low threshold.

middleValue

Value for pixels that are above or equal to the low threshold, and below or equal the high threshold.

highValue

Value for pixels strictly above to the high threshold.

region

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

EasyImage.DoubleThreshold

Converts an image by setting all pixels below the low threshold to a low value, all pixels above the high threshold to a high value, and the remaining pixels to an intermediate value.

Namespace: Euresys.Open_eVision

[C#]

void DoubleThreshold(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW8 destinationImage,
   uint lowThreshold,
   uint highThreshold,
   byte lowValue,
   byte middleValue,
   byte highValue
)

void DoubleThreshold(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EROIBW16 destinationImage,
   uint lowThreshold,
   uint highThreshold,
   Euresys.Open_eVision.EBW16 lowValue,
   Euresys.Open_eVision.EBW16 middleValue,
   Euresys.Open_eVision.EBW16 highValue
)

void DoubleThreshold(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EROIBW16 destinationImage,
   uint lowThreshold,
   uint highThreshold
)

void DoubleThreshold(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.ERegion region,
   Euresys.Open_eVision.EROIBW8 destinationImage,
   uint lowThreshold,
   uint highThreshold,
   byte lowValue,
   byte middleValue,
   byte highValue
)

void DoubleThreshold(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.ERegion region,
   Euresys.Open_eVision.EROIBW16 destinationImage,
   uint lowThreshold,
   uint highThreshold,
   Euresys.Open_eVision.EBW16 lowValue,
   Euresys.Open_eVision.EBW16 middleValue,
   Euresys.Open_eVision.EBW16 highValue
)

void DoubleThreshold(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.ERegion region,
   Euresys.Open_eVision.EROIBW16 destinationImage,
   uint lowThreshold,
   uint highThreshold
)

Parameters

sourceImage

Pointer to the source image/ROI.

destinationImage

Pointer to the destination image/ROI.

lowThreshold

Low threshold value.

highThreshold

High threshold value.

lowValue

Value for pixels strictly below the low threshold.

middleValue

Value for pixels that are above or equal to the low threshold, and below or equal the high threshold.

highValue

Value for pixels strictly above to the high threshold.

region

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