You are here: Start » AVL.NET » AVS.ThresholdImage_Dynamic Method
AVS.ThresholdImage_Dynamic Method
Thresholds an image relatively to some value calculated in a local rectangular neighbourhood.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void ThresholdImage_Dynamic ( AvlNet.Image inImage, NullableRef<AvlNet.Region> inRoi, NullableRef<AvlNet.Region> inSourceRoi, AvlNet.ThresholdDynamicReferenceMethod inReferenceMethod, AvlNet.KernelShape inKernel, int inRadiusX, int? inRadiusY, float? inMinRelativeValue, float? inMaxRelativeValue, float inFuzziness, AvlNet.Image outMonoImage, AvlNet.Image diagBaseImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
inRoi | AvlNet.NullableRef<AvlNet.Region> | Region in which pixels are written. Default value: atl::NIL. | |||
inSourceRoi | AvlNet.NullableRef<AvlNet.Region> | Region from which pixels are read. Default value: atl::NIL. | |||
inReferenceMethod | AvlNet.ThresholdDynamicReferenceMethod | Mean | Specifies how the local threshold value will be calculated (see SmoothImage filter family). Default value: Mean. | ||
inKernel | AvlNet.KernelShape | Box | Kernel shape. Default value: Box. | ||
inRadiusX | int | <0, 65535> | 5 | Horizontal radius of local neighbourhood. Default value: 5. | |
inRadiusY | int? | <0, 65535> | Vertical radius of local neighbourhood (Auto = inRadiusX). Default value: atl::NIL. | ||
inMinRelativeValue | float? | 0.0f | Minimum relative value of a pixel that is considered foreground (Auto = -INF). Default value: 0.0f. | ||
inMaxRelativeValue | float? | Maximum relative value of a pixel that is considered foreground (Auto = +INF). Default value: atl::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 | AvlNet.Image | ||||
diagBaseImage | AvlNet.Image | Diagnostic threshold values. |
Function Overrides
- ThresholdImage_Dynamic(Image, ThresholdDynamicReferenceMethod, KernelShape, Int32, Nullable<Single>, Nullable<Single>, Single, Image)
- ThresholdImage_Dynamic(Image, NullableRef<Region>, NullableRef<Region>, ThresholdDynamicReferenceMethod, KernelShape, Int32, Nullable<Int32>, Nullable<Single>, Nullable<Single>, Single, Image)