Back to FabImage Library website
You are here: Start » Function Reference » Image » Image Thresholding » ThresholdImage_Multirange

ThresholdImage_Multirange
Header: | FIL.h |
---|---|
Namespace: | fil |
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 fil::ThresholdImage_Multirange ( const fil::Image& inImage, ftl::Optional<const fil::Region&> inRoi, ftl::Optional<float> inMinValue1, ftl::Optional<float> inMaxValue1, ftl::Optional<float> inMinValue2, ftl::Optional<float> inMaxValue2, ftl::Optional<float> inMinValue3, ftl::Optional<float> inMaxValue3, ftl::Optional<float> inMinValue4, ftl::Optional<float> inMaxValue4, fil::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.