You are here: Start » AVL.NET » Invoke.NormalizeImage

Invoke.NormalizeImage

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

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void NormalizeImage
(
	Avl.Image inImage,
	Optional<Avl.Region> inRoi,
	float inNewMinimum,
	float inNewMaximum,
	float inSaturateBrightestFraction,
	float inSaturateDarkestFraction,
	Optional<float> inMinValue,
	Optional<float> inMaxValue,
	Avl.Image outImage,
	out float outA,
	out float outB,
	Diagnostic<Avl.Region> diagLinearNormalizedRegion
)

Parameters

Name Type Range Default Description
inImageAvl.ImageInput image.
inRoiAtl.Optional<Avl.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.
inMinValueAtl.Optional<float>Pixels darker than that value will be skipped during normalization. Default value: atl::NIL.
inMaxValueAtl.Optional<float>Pixels brighter than that value will be skipped during normalization. Default value: atl::NIL.
outImageAvl.ImageRescaled image.
outAfloatMultiplicative parameter of the applied linear transformation of pixel values.
outBfloatAdditive parameter of the applied linear transformation of pixel values.
diagLinearNormalizedRegionAvl.Diagnostic<Avl.Region>Region of image that has been linearly normalized.

See also