You are here: Start » AVL.NET » AVL.ThresholdImage_Color(AvlNet.Image, AvlNet.Region, AvlNet.Pixel, float, float, float, AvlNet.Image)
AVL.ThresholdImage_Color(AvlNet.Image, AvlNet.Region, AvlNet.Pixel, float, float, float, AvlNet.Image)
Transforms each pixel value to maximum or minimum depending on the distance from a given color.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void ThresholdImage_Color( AvlNet.Image inImage, AvlNet.Region inRoi, AvlNet.Pixel inRgbColor, float inChromaAmount, float inMaxDifference, float inFuzziness, out AvlNet.Image outMonoImage )
Parameters
- inImage
- Type: AvlNet.Image
Input image - inRoi
- Type: AvlNet.Region
Region of interest, or null. - inRgbColor
- Type: AvlNet.Pixel
Color to compare the image to - inChromaAmount
- Type: System.Single
Proportion of chromatic information in distance computation - inMaxDifference
- Type: System.Single
Maximum difference between image pixel and model color - inFuzziness
- Type: System.Single
A tolerance for computed difference that results in intermediate output values - outMonoImage
- Type: AvlNet.Image
Examples
![]() |
![]() |
ThresholdImage_Color performed on a sample image with inRgbColor = (192, 34, 22), inChromaAmount = 1.0, inMaxDifference = 48.
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.
Hardware acceleration settings may be manipulated with Settings class.


