You are here: Start » AVL.NET » AVS.ThresholdImage Method

AVS.ThresholdImage Method

Transforms each pixel value to maximum or minimum depending on whether they belong to the specified range.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ThresholdImage
(
	AvlNet.Image inImage,
	NullableRef<AvlNet.Region> inRoi,
	float? inMinValue,
	float? inMaxValue,
	float inFuzziness,
	AvlNet.Image outMonoImage
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.NullableRef<AvlNet.Region>Region of interest. Default value: atl::NIL.
inMinValuefloat?128.0fMinimum value of a pixel that is considered foreground (Auto = -INF). Default value: 128.0f.
inMaxValuefloat?Maximum value of a pixel that is considered foreground (Auto = +INF). Default value: atl::NIL.
inFuzzinessfloat<0.0f, INF>0.0fA tolerance for inMin/MaxValue that results in intermediate output values. Default value: 0.0f.
outMonoImageAvlNet.Image

Function Overrides

See also