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

AVS.ThresholdToRegion_Dynamic Method

Thresholds an image relatively to the average pixel value in a local rectangular neighborhood.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ThresholdToRegion_Dynamic
(
	AvlNet.Image inImage,
	NullableRef<AvlNet.Region> inRoi,
	NullableRef<AvlNet.Region> inSourceRoi,
	int inRadiusX,
	int? inRadiusY,
	float? inMinRelativeValue,
	float? inMaxRelativeValue,
	float inHysteresis,
	AvlNet.Region outRegion,
	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.
inRadiusXint<0, 65535>5Horizontal radius of internal mean blur. Default value: 5.
inRadiusYint?<0, 65535>Vertical radius of internal mean blur (Auto = inRadiusX). Default value: atl::NIL.
inMinRelativeValuefloat?5.0fMinimum relative value of a pixel that is considered foreground (Auto = -INF). Default value: 5.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.
diagBaseImageAvlNet.ImageDiagnostic blurred image.

Function Overrides

See also