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

Invoke.ThresholdToRegion_Relative_DarkBright

Thresholds an image using two relative thresholds and produces two regions (Dark and Bright) in a single image pass.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void ThresholdToRegion_Relative_DarkBright
(
	Avl.Image inImage,
	Optional<Avl.Region> inRoi,
	Avl.Image inBaseImage,
	float inDarkThreshold,
	float inBrightThreshold,
	float inHysteresis,
	Avl.Region outDarkRegion,
	Avl.Region outBrightRegion
)

Parameters

Name Type Range Default Description
inImageAvl.ImageInput image.
inRoiAtl.Optional<Avl.Region>Region of interest. Default value: atl::NIL.
inBaseImageAvl.ImagePixels of this image are subtracted from inImage before thresholding.
inDarkThresholdfloat64.0fMaximum relative value of a pixel that is considered DarkRegion. Default value: 64.0f.
inBrightThresholdfloat192.0fMinimum relative value of a pixel that is considered BrightRegion. Default value: 192.0f.
inHysteresisfloat<0.0f, INF>0.0fDefines how much the threshold criteria are lowered for pixels neighboring with other foreground pixels. Default value: 0.0f.
outDarkRegionAvl.RegionRegion of pixels equal or lower than inDarkThreshold.
outBrightRegionAvl.RegionRegion of pixels equal or greater than inBrightThreshold.

See also