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

AVS.ThresholdImage_Dynamic Method

Thresholds an image relatively to some value calculated in a local rectangular neighbourhood.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ThresholdImage_Dynamic
(
	AvlNet.Image inImage,
	NullableRef<AvlNet.Region> inRoi,
	NullableRef<AvlNet.Region> inSourceRoi,
	AvlNet.ThresholdDynamicReferenceMethod inReferenceMethod,
	AvlNet.KernelShape inKernel,
	int inRadiusX,
	int? inRadiusY,
	float? inMinRelativeValue,
	float? inMaxRelativeValue,
	float inFuzziness,
	AvlNet.Image outMonoImage,
	AvlNet.Image diagBaseImage
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.NullableRef<AvlNet.Region>Region in which pixels are written. Default value: atl::NIL.
inSourceRoiAvlNet.NullableRef<AvlNet.Region>Region from which pixels are read. Default value: atl::NIL.
inReferenceMethodAvlNet.ThresholdDynamicReferenceMethodMeanSpecifies how the local threshold value will be calculated (see SmoothImage filter family). Default value: Mean.
inKernelAvlNet.KernelShapeBoxKernel shape. Default value: Box.
inRadiusXint<0, 65535>5Horizontal radius of local neighbourhood. Default value: 5.
inRadiusYint?<0, 65535>Vertical radius of local neighbourhood (Auto = inRadiusX). Default value: atl::NIL.
inMinRelativeValuefloat?0.0fMinimum relative value of a pixel that is considered foreground (Auto = -INF). Default value: 0.0f.
inMaxRelativeValuefloat?Maximum relative value of a pixel that is considered foreground (Auto = +INF). Default value: atl::NIL.
inFuzzinessfloat<0.0f, INF>0.0fA tolerance for inMin/MaxRelativeValue that results in intermediate output values. Clamped on half of pixel max value (e.g. max fuzziness for uint8 image is 128). Default value: 0.0f.
outMonoImageAvlNet.Image
diagBaseImageAvlNet.ImageDiagnostic threshold values.

Function Overrides

See also