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

AVS.NormalizeImage Method

Rescales an image linearly, so that its minimum becomes inNewMinimum and the maximum of the remaining pixels becomes inNewMaximum.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void NormalizeImage
(
	AvlNet.Image inImage,
	NullableRef<AvlNet.Region> inRoi,
	float inNewMinimum,
	float inNewMaximum,
	float inSaturateBrightestFraction,
	float inSaturateDarkestFraction,
	float? inMinValue,
	float? inMaxValue,
	AvlNet.Image outImage,
	out float outA,
	out float outB
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.NullableRef<AvlNet.Region>Range of pixels to be processed. Default value: atl::NIL.
inNewMinimumfloat0.0fDesired minimum value of the resulting image. Default value: 0.0f.
inNewMaximumfloat255.0fDesired maximum value of the resulting image. Default value: 255.0f.
inSaturateBrightestFractionfloat<0.0f, 1.0f>0.0fFraction of the brightest pixels skipped during normalization. Default value: 0.0f.
inSaturateDarkestFractionfloat<0.0f, 1.0f>0.0fFraction of the darkest pixels skipped during normalization. Default value: 0.0f.
inMinValuefloat?Pixels darker than that value will be skipped during normalization. Default value: atl::NIL.
inMaxValuefloat?Pixels brighter than that value will be skipped during normalization. Default value: atl::NIL.
outImageAvlNet.ImageRescaled image.
outAfloatMultiplicative parameter of the applied linear transformation of pixel values.
outBfloatAdditive parameter of the applied linear transformation of pixel values.

Function Overrides

See also