Class GImageBandMath

java.lang.Object
boofcv.alg.misc.GImageBandMath

public class GImageBandMath extends Object
Collection of functions that project Bands of Planar images onto a single image. Can be used to perform projections such as minimum, maximum, average, median, standard Deviation.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends ImageGray<T>>
    void
    average(Planar<T> input, T output)
    Computes the average for each pixel across all bands in the Planar image.
    static <T extends ImageGray<T>>
    void
    average(Planar<T> input, T output, int startBand, int lastBand)
    Computes the average for each pixel across the specified bands in the Planar image.
    static <T extends ImageGray<T>>
    void
    maximum(Planar<T> input, T output)
    Computes the maximum for each pixel across all bands in the Planar image.
    static <T extends ImageGray<T>>
    void
    maximum(Planar<T> input, T output, int startBand, int lastBand)
    Computes the maximum for each pixel across the specified bands in the Planar image.
    static <T extends ImageGray<T>>
    void
    median(Planar<T> input, T output)
    Computes the median for each pixel across all bands in the Planar image.
    static <T extends ImageGray<T>>
    void
    median(Planar<T> input, T output, int startBand, int lastBand)
    Computes the median for each pixel across the specified bands in the Planar image.
    static <T extends ImageGray<T>>
    void
    minimum(Planar<T> input, T output)
    Computes the minimum for each pixel across all bands in the Planar image.
    static <T extends ImageGray<T>>
    void
    minimum(Planar<T> input, T output, int startBand, int lastBand)
    Computes the minimum for each pixel across specified bands in the Planar image.
    static <T extends ImageGray<T>>
    void
    stdDev(Planar<T> input, T output, T avg)
    Computes the standard deviation for each pixel across all bands in the Planar image.
    static <T extends ImageGray<T>>
    void
    stdDev(Planar<T> input, T output, T avg, int startBand, int lastBand)
    Computes the standard deviation for each pixel across the specified bands in the Planar image.

    Methods inherited from class java.lang.Object

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

    • GImageBandMath

      public GImageBandMath()
  • Method Details

    • minimum

      public static <T extends ImageGray<T>> void minimum(Planar<T> input, T output)
      Computes the minimum for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing minimum pixel values
    • minimum

      public static <T extends ImageGray<T>> void minimum(Planar<T> input, T output, int startBand, int lastBand)
      Computes the minimum for each pixel across specified bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing minimum pixel values
      startBand - First band to be considered
      lastBand - Last band (inclusive) to be considered
    • maximum

      public static <T extends ImageGray<T>> void maximum(Planar<T> input, T output)
      Computes the maximum for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing average pixel values
    • maximum

      public static <T extends ImageGray<T>> void maximum(Planar<T> input, T output, int startBand, int lastBand)
      Computes the maximum for each pixel across the specified bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing average pixel values
      startBand - First band to be considered
      lastBand - Last band (inclusive) to be considered
    • average

      public static <T extends ImageGray<T>> void average(Planar<T> input, T output)
      Computes the average for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing average pixel values
    • average

      public static <T extends ImageGray<T>> void average(Planar<T> input, T output, int startBand, int lastBand)
      Computes the average for each pixel across the specified bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing average pixel values
      startBand - First band to be considered
      lastBand - Last band (inclusive) to be considered
    • median

      public static <T extends ImageGray<T>> void median(Planar<T> input, T output)
      Computes the median for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing median pixel values
    • median

      public static <T extends ImageGray<T>> void median(Planar<T> input, T output, int startBand, int lastBand)
      Computes the median for each pixel across the specified bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing median pixel values
      startBand - First band to be considered
      lastBand - Last band (inclusive) to be considered
    • stdDev

      public static <T extends ImageGray<T>> void stdDev(Planar<T> input, T output, @Nullable T avg)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing average pixel values
      avg - Gray scale image containing average projection of input
    • stdDev

      public static <T extends ImageGray<T>> void stdDev(Planar<T> input, T output, @Nullable T avg, int startBand, int lastBand)
      Computes the standard deviation for each pixel across the specified bands in the Planar image.
      Parameters:
      input - Planar image - unchanged
      output - Output Gray scale Image - changed
      avg - Optional gray scale image containing average pixel values - should be same size as a plane in input
      startBand - First band to be considered
      lastBand - Last band (inclusive) to be considered