You are here: Start » AVL.NET » Invoke.ThresholdImage_Color

Invoke.ThresholdImage_Color

Transforms each pixel value to maximum or minimum depending on the distance from a given color.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void ThresholdImage_Color
(
	Avl.Image inImage,
	Optional<Avl.Region> inRoi,
	Avl.Pixel inRgbColor,
	float inChromaAmount,
	float inMaxDifference,
	float inFuzziness,
	Avl.Image outMonoImage
)

Parameters

Name Type Range Default Description
inImageAvl.ImageInput image.
inRoiAtl.Optional<Avl.Region>Region of interest. Default value: atl::NIL.
inRgbColorAvl.PixelColor to compare the image to.
inChromaAmountfloat<0.0f, 1.0f>0.7fProportion of chromatic information in distance computation. Default value: 0.7f.
inMaxDifferencefloat<0.0f, INF>5.0fMaximum difference between image pixel and model color. Default value: 5.0f.
inFuzzinessfloat<0.0f, INF>0.0fA tolerance for computed difference that results in intermediate output values. Default value: 0.0f.
outMonoImageAvl.Image

See also