Package boofcv.alg.misc
Class ImageNormalization
java.lang.Object
boofcv.alg.misc.ImageNormalization
Functions related to adjusting input pixels to ensure they have a known and fixed range. Can handle the
conversion of integer to float images. Output is always float.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
apply
(ImageGray input, NormalizeParameters parameter, ImageGray output) Applies the normalization to the image.static void
maxAbsOfOne
(ImageGray input, ImageGray output, @Nullable NormalizeParameters parameters) Normalizes the image so that the max abs of the image is 1.static void
zeroMeanMaxOne
(ImageGray input, ImageGray output, @Nullable NormalizeParameters parameters) Ensures that the output image has a mean zero and a max abs(pixel) of 1static void
zeroMeanStdOne
(ImageGray input, ImageGray output, @Nullable NormalizeParameters parameters) Ensures that the output image has a mean zero and a standard deviation of 1.
-
Constructor Details
-
ImageNormalization
public ImageNormalization()
-
-
Method Details
-
apply
Applies the normalization to the image.- Parameters:
input
- Input image.parameter
- Normalziation parametersoutput
- Output image. Can be the same instance as the input image.
-
maxAbsOfOne
public static void maxAbsOfOne(ImageGray input, ImageGray output, @Nullable @Nullable NormalizeParameters parameters) Normalizes the image so that the max abs of the image is 1.- Parameters:
input
- Input imageoutput
- Scaled output image.parameters
- the parameters
-
zeroMeanMaxOne
public static void zeroMeanMaxOne(ImageGray input, ImageGray output, @Nullable @Nullable NormalizeParameters parameters) Ensures that the output image has a mean zero and a max abs(pixel) of 1- Parameters:
input
- Input imageoutput
- Scaled output image.
-
zeroMeanStdOne
public static void zeroMeanStdOne(ImageGray input, ImageGray output, @Nullable @Nullable NormalizeParameters parameters) Ensures that the output image has a mean zero and a standard deviation of 1. This is often the recommended approach.- Parameters:
input
- Input imageoutput
- Scaled output image.
-