Package boofcv.alg.misc
Class ImageNormalization
- java.lang.Object
-
- boofcv.alg.misc.ImageNormalization
-
public class ImageNormalization extends java.lang.ObjectFunctions 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
Constructors Constructor Description ImageNormalization()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidapply(boofcv.struct.image.ImageGray input, NormalizeParameters parameter, boofcv.struct.image.ImageGray output)Applies the normalization to the image.static voidmaxAbsOfOne(boofcv.struct.image.ImageGray input, boofcv.struct.image.ImageGray output, NormalizeParameters parameters)Normalizes the image so that the max abs of the image is 1.static voidzeroMeanMaxOne(boofcv.struct.image.ImageGray input, boofcv.struct.image.ImageGray output, NormalizeParameters parameters)Ensures that the output image has a mean zero and a max abs(pixel) of 1static voidzeroMeanStdOne(boofcv.struct.image.ImageGray input, boofcv.struct.image.ImageGray output, NormalizeParameters parameters)Ensures that the output image has a mean zero and a standard deviation of 1.
-
-
-
Method Detail
-
apply
public static void apply(boofcv.struct.image.ImageGray input, NormalizeParameters parameter, boofcv.struct.image.ImageGray output)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(boofcv.struct.image.ImageGray input, boofcv.struct.image.ImageGray output, @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(boofcv.struct.image.ImageGray input, boofcv.struct.image.ImageGray output, @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(boofcv.struct.image.ImageGray input, boofcv.struct.image.ImageGray output, @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.
-
-