You are here: Start » FIL.NET » Invoke.NormalizeImage
Rescales an image linearly, so that its minimum becomes inNewMinimum and the maximum of the remaining pixels becomes inNewMaximum.
Namespace: | Fil |
---|---|
Assembly: | FilNet.dll |
Syntax
C++
C#
public static void NormalizeImage ( Fil.Image inImage, Optional<Fil.Region> inRoi, float inNewMinimum, float inNewMaximum, float inSaturateBrightestFraction, float inSaturateDarkestFraction, Optional<float> inMinValue, Optional<float> inMaxValue, Fil.Image outImage, out float outA, out float outB, Diagnostic<Fil.Region> diagLinearNormalizedRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | Fil.Image | Input image. | ||
![]() | inRoi | Ftl.Optional<Fil.Region> | Range of pixels to be processed. Default value: ftl::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 | Ftl.Optional<float> | Pixels darker than that value will be skipped during normalization. Default value: ftl::NIL. | ||
![]() | inMaxValue | Ftl.Optional<float> | Pixels brighter than that value will be skipped during normalization. Default value: ftl::NIL. | ||
![]() | outImage | Fil.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 | Fil.Diagnostic<Fil.Region> | Region of image that has been linearly normalized. |