Class ImageNormalization


  • public class ImageNormalization
    extends java.lang.Object
    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.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void apply​(boofcv.struct.image.ImageGray input, NormalizeParameters parameter, boofcv.struct.image.ImageGray output)
      Applies the normalization to the image.
      static void maxAbsOfOne​(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 void zeroMeanMaxOne​(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 1
      static void zeroMeanStdOne​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageNormalization

        public ImageNormalization()
    • 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 parameters
        output - 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 image
        output - 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 image
        output - 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 image
        output - Scaled output image.