You are here: Start » AVL.NET » 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 | |
|---|---|---|---|---|---|
![]()  | inImage | Avl.Image | Input image. | ||
![]()  | inRoi | Atl.Optional<Avl.Region> | Range of pixels to be processed. Default value: atl::NIL. | ||
![]()  | inNewMinimum | float | 0.0f | Desired minimum value of the resulting image. Default value: 0.0f. | |
![]()  | inNewMaximum | float | 255.0f | Desired maximum value of the resulting image. Default value: 255.0f. | |
![]()  | inSaturateBrightestFraction | float | <0.0f, 1.0f> | 0.0f | Fraction of the brightest pixels skipped during normalization. Default value: 0.0f. | 
![]()  | inSaturateDarkestFraction | float | <0.0f, 1.0f> | 0.0f | Fraction of the darkest pixels skipped during normalization. Default value: 0.0f. | 
![]()  | inMinValue | Atl.Optional<float> | Pixels darker than that value will be skipped during normalization. Default value: atl::NIL. | ||
![]()  | inMaxValue | Atl.Optional<float> | Pixels brighter than that value will be skipped during normalization. Default value: atl::NIL. | ||
![]()  | outImage | Avl.Image | Rescaled image. | ||
![]()  | outA | float | Multiplicative parameter of the applied linear transformation of pixel values. | ||
![]()  | outB | float | Additive parameter of the applied linear transformation of pixel values. | ||
![]()  | diagLinearNormalizedRegion | Avl.Diagnostic<Avl.Region> | Region of image that has been linearly normalized. | 



