Back to Adaptive Vision Studio website
You are here: Start » Filter Reference » Image Thresholding » ThresholdImage_Color
Transforms each pixel value to maximum or minimum depending on the distance from a given color.
Name | Type | Range | Description | |
---|---|---|---|---|
inImage | Image | Input image | ||
inRoi | Region* | Region of interest | ||
inRgbColor | Pixel | Color to compare the image to | ||
inChromaAmount | Real | 0.0 - 1.0 | Proportion of chromatic information in distance computation | |
inMaxDifference | Real | 0.0 - | Maximum difference between image pixel and model color | |
inFuzziness | Real | 0.0 - | A tolerance for computed difference that results in intermediate output values | |
outMonoImage | Image |
Only the following inImage pixel formats are supported: 1xuint8, 2xuint8, 3xuint8, 4xuint8
Applications
Color analysis with a given reference color.
Hints
- Define the reference color by setting the inRgbColor input. You can use the Color Picker tool on an image preview and then copy-and-paste the value.
- Increase inChromaAmount to make the filter less sensitive to changes in brightness. Decrease it to make brightness more important.
- Set inMaxDifference experimentally to a value that best separates the foreground and background pixels.
- Use inFuzziness to add some smooth transitions between black and white pixels in the result.
Examples
Hardware Acceleration
This operation is optimized for SSE2 technology for pixels of types: 1xUINT8 (for inFuzziness = 0), 3xUINT8 (for inFuzziness = 0).
This operation supports automatic parallelization for multicore and multiprocessor systems.
Complexity Level
This filter is available on Basic Complexity Level.
Filter Group
This filters is member of ThresholdImage filter group.