You are here: Start » FIL.NET » Invoke.ThresholdImage_Dynamic

Invoke.ThresholdImage_Dynamic

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

Namespace:Fil
Assembly:FilNet.dll

Syntax

C++
C#
 
public static void ThresholdImage_Dynamic
(
	Fil.Image inImage,
	Optional<Fil.Region> inRoi,
	Optional<Fil.Region> inSourceRoi,
	Fil.ThresholdDynamicReferenceMethod inReferenceMethod,
	Fil.KernelShape inKernel,
	int inRadiusX,
	Optional<int> inRadiusY,
	Optional<float> inMinRelativeValue,
	Optional<float> inMaxRelativeValue,
	float inFuzziness,
	Fil.Image outMonoImage,
	Diagnostic<Fil.Image> diagBaseImage
)

Parameters

Name Type Range Default Description
inImageFil.ImageInput image.
inRoiFtl.Optional<Fil.Region>Region in which pixels are written. Default value: ftl::NIL.
inSourceRoiFtl.Optional<Fil.Region>Region from which pixels are read. Default value: ftl::NIL.
inReferenceMethodFil.ThresholdDynamicReferenceMethodMeanSpecifies how the local threshold value will be calculated (see SmoothImage filter family). Default value: Mean.
inKernelFil.KernelShapeBoxKernel shape. Default value: Box.
inRadiusXint<0, 65535>5Horizontal radius of local neighbourhood. Default value: 5.
inRadiusYFtl.Optional<int><0, 65535>Vertical radius of local neighbourhood (Auto = inRadiusX). Default value: ftl::NIL.
inMinRelativeValueFtl.Optional<float>0.0fMinimum relative value of a pixel that is considered foreground (Auto = -INF). Default value: 0.0f.
inMaxRelativeValueFtl.Optional<float>Maximum relative value of a pixel that is considered foreground (Auto = +INF). Default value: ftl::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.
outMonoImageFil.Image
diagBaseImageFil.Diagnostic<Fil.Image>Diagnostic threshold values.

See also