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

AVS.ThresholdToRegion_Relative Method

Thresholds an image with a different threshold value for each pixel (inBaseImage(x, y) + inValue).

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ThresholdToRegion_Relative
(
	AvlNet.Image inImage,
	AvlNet.Image inBaseImage,
	float? inMinRelativeValue,
	float? inMaxRelativeValue,
	float inHysteresis,
	AvlNet.Region outRegion
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inBaseImageAvlNet.ImagePixels of this image are subtracted from inImage before thresholding.
inMinRelativeValuefloat?128.0fMinimum relative value of a pixel that is considered foreground (Auto = -INF). Default value: 128.0f.
inMaxRelativeValuefloat?Maximum relative value of a pixel that is considered foreground (Auto = +INF). Default value: atl::NIL.
inHysteresisfloat<0.0f, INF>0.0fDefines how much the threshold criteria are lowered for pixels neighboring with other foreground pixels. Default value: 0.0f.
outRegionAvlNet.RegionOutput region.

Function Overrides

See also