You are here: Start » FIL.NET » 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 | |
---|---|---|---|---|---|
![]() | inImage | Fil.Image | Input image. | ||
![]() | inRoi | Ftl.Optional<Fil.Region> | Region in which pixels are written. Default value: ftl::NIL. | ||
![]() | inSourceRoi | Ftl.Optional<Fil.Region> | Region from which pixels are read. Default value: ftl::NIL. | ||
![]() | inReferenceMethod | Fil.ThresholdDynamicReferenceMethod | Mean | Specifies how the local threshold value will be calculated (see SmoothImage filter family). Default value: Mean. | |
![]() | inKernel | Fil.KernelShape | Box | Kernel shape. Default value: Box. | |
![]() | inRadiusX | int | <0, 65535> | 5 | Horizontal radius of local neighbourhood. Default value: 5. |
![]() | inRadiusY | Ftl.Optional<int> | <0, 65535> | Vertical radius of local neighbourhood (Auto = inRadiusX). Default value: ftl::NIL. | |
![]() | inMinRelativeValue | Ftl.Optional<float> | 0.0f | Minimum relative value of a pixel that is considered foreground (Auto = -INF). Default value: 0.0f. | |
![]() | inMaxRelativeValue | Ftl.Optional<float> | Maximum relative value of a pixel that is considered foreground (Auto = +INF). Default value: ftl::NIL. | ||
![]() | inFuzziness | float | <0.0f, INF> | 0.0f | A 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. |
![]() | outMonoImage | Fil.Image | |||
![]() | diagBaseImage | Fil.Diagnostic<Fil.Image> | Diagnostic threshold values. |