Class ImageNormalization

java.lang.Object
boofcv.alg.misc.ImageNormalization

public class ImageNormalization
extends 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.
  • Constructor Details

    • ImageNormalization

      public ImageNormalization()
  • Method Details

    • apply

      public static void apply​(ImageGray input, NormalizeParameters parameter, 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​(ImageGray input, ImageGray output, @Nullable @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​(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 image
      output - 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 image
      output - Scaled output image.