Back to Aurora Vision Library website
You are here: Start » Function Reference » Image » Image Thresholding » ThresholdImage_Multirange
ThresholdImage_Multirange
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationPro |
Transforms each pixel value to maximum or minimum depending on whether they belong to the specified range.
Applications: Image binarization when the illumination is constant and uniform.
Syntax
C++
C#
void avl::ThresholdImage_Multirange ( const avl::Image& inImage, atl::Optional<const avl::Region&> inRoi, atl::Optional<float> inMinValue1, atl::Optional<float> inMaxValue1, atl::Optional<float> inMinValue2, atl::Optional<float> inMaxValue2, atl::Optional<float> inMinValue3, atl::Optional<float> inMaxValue3, atl::Optional<float> inMinValue4, atl::Optional<float> inMaxValue4, avl::Image& outImage )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inImage | const Image& | Input image | ||
inRoi | Optional<const Region&> | NIL | Region of interest | |
inMinValue1 | Optional<float> | 1.0f | Minimum value of a pixel that is considered foreground (Auto = -INF) | |
inMaxValue1 | Optional<float> | NIL | Maximum value of a pixel that is considered foreground (Auto = +INF) | |
inMinValue2 | Optional<float> | 64.0f | Minimum value of a pixel that is considered foreground (Auto = -INF) | |
inMaxValue2 | Optional<float> | NIL | Maximum value of a pixel that is considered foreground (Auto = +INF) | |
inMinValue3 | Optional<float> | 128.0f | Minimum value of a pixel that is considered foreground (Auto = -INF) | |
inMaxValue3 | Optional<float> | NIL | Maximum value of a pixel that is considered foreground (Auto = +INF) | |
inMinValue4 | Optional<float> | 192.0f | Minimum value of a pixel that is considered foreground (Auto = -INF) | |
inMaxValue4 | Optional<float> | NIL | Maximum value of a pixel that is considered foreground (Auto = +INF) | |
outImage | Image& | Output image |
Hardware Acceleration
This operation is optimized for SSE2 technology for pixels of types: 1xUINT8 (for inFuzziness = 0).
This operation is optimized for AVX2 technology for pixels of types: 1xUINT8 (for inFuzziness = 0) PARALLEL.