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

AVS.ThresholdImage_RGB Method

Transforms each pixel value to minimum or maximum depending on whether it belongs to the specified range for each individual pixel component.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ThresholdImage_RGB
(
	AvlNet.Image inRgbImage,
	NullableRef<AvlNet.Region> inRoi,
	int? inMinRed,
	int? inMaxRed,
	int? inMinGreen,
	int? inMaxGreen,
	int? inMinBlue,
	int? inMaxBlue,
	int? inMinAlpha,
	int? inMaxAlpha,
	float inFuzziness,
	AvlNet.Image outMonoImage
)

Parameters

Name Type Range Default Description
inRgbImageAvlNet.ImageInput image, usually in the RGB color space.
inRoiAvlNet.NullableRef<AvlNet.Region>Region of interest. Default value: atl::NIL.
inMinRedint?<0, 255>128Minimum for the first pixel component, usually Red (Auto = -INF). Default value: 128.
inMaxRedint?<0, 255>Maximum for the first pixel component, usually Red (Auto = +INF). Default value: atl::NIL.
inMinGreenint?<0, 255>128Minimum for the second pixel component, usually Green (Auto = -INF). Default value: 128.
inMaxGreenint?<0, 255>Maximum for the second pixel component, usually Green (Auto = +INF). Default value: atl::NIL.
inMinBlueint?<0, 255>128Minimum for the third pixel component, usually Blue (Auto = -INF). Default value: 128.
inMaxBlueint?<0, 255>Maximum for the third pixel component, usually Blue (Auto = +INF). Default value: atl::NIL.
inMinAlphaint?<0, 255>Minimum for the fourth pixel component, usually Blue (Auto = -INF). Default value: atl::NIL.
inMaxAlphaint?<0, 255>Maximum for the fourth pixel component, usually Blue (Auto = +INF). Default value: atl::NIL.
inFuzzinessfloat<0.0f, INF>Tolerance for the ranges that results in intermediate output values.
outMonoImageAvlNet.Image

Function Overrides

See also