You are here: Start » AVL.NET » AVL.NormalizeImage(AvlNet.Image, AvlNet.Region, float, float, float, float, AvlNet.Image, float, float)

AVL.NormalizeImage(AvlNet.Image, AvlNet.Region, float, float, float, float, AvlNet.Image, float, float)

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,
	AvlNet.Region inRoi,
	float inNewMinimum,
	float inNewMaximum,
	float inSaturateBrightestFraction,
	float inSaturateDarkestFraction,
	out AvlNet.Image outImage,
	out float outA,
	out float outB
)

Parameters

inImage
Type: AvlNet.Image
Input image
inRoi
Type: AvlNet.Region
Range of pixels to be processed, or null.
inNewMinimum
Type: System.Single
Desired minimum value of the resulting image
inNewMaximum
Type: System.Single
Desired maximum value of the resulting image
inSaturateBrightestFraction
Type: System.Single
Fraction of the brightest pixels skipped during normalization
inSaturateDarkestFraction
Type: System.Single
Fraction of the darkest pixels skipped during normalization
outImage
Type: AvlNet.Image
Rescaled image
outA
Type: System.Single
Multiplicative parameter of the applied linear transformation of pixel values
outB
Type: System.Single
Additive parameter of the applied linear transformation of pixel values

See also