Class ImageBandMath

java.lang.Object
boofcv.alg.misc.ImageBandMath

@Generated("boofcv.alg.misc.GenerateImageBandMath")
public class ImageBandMath
extends Object

DO NOT MODIFY: Generated by boofcv.alg.misc.GenerateImageBandMath.

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 Details

    • ImageBandMath

      public ImageBandMath()
  • Method Details

    • checkInput

      public static <T extends ImageGray<T>> void checkInput​(Planar<T> input, int startBand, int lastBand)
    • minimum

      public static void minimum​(Planar<GrayU8> input, GrayU8 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 void minimum​(Planar<GrayU8> input, GrayU8 output, int startBand, int lastBand)
      Computes the minimum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing minimum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • maximum

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

      public static void maximum​(Planar<GrayU8> input, GrayU8 output, int startBand, int lastBand)
      Computes the maximum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing maximum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • average

      public static void average​(Planar<GrayU8> input, GrayU8 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 void average​(Planar<GrayU8> input, GrayU8 output, int startBand, int lastBand)
      Computes the average for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing average pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • median

      public static void median​(Planar<GrayU8> input, GrayU8 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 void median​(Planar<GrayU8> input, GrayU8 output, int startBand, int lastBand)
      Computes the median for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing median pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • stdDev

      public static void stdDev​(Planar<GrayU8> input, GrayU8 output, @Nullable @Nullable GrayU8 avg)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
    • stdDev

      public static void stdDev​(Planar<GrayU8> input, GrayU8 output, @Nullable @Nullable GrayU8 avg, int startBand, int lastBand)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • minimum

      public static void minimum​(Planar<GrayS16> input, GrayS16 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 void minimum​(Planar<GrayS16> input, GrayS16 output, int startBand, int lastBand)
      Computes the minimum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing minimum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • maximum

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

      public static void maximum​(Planar<GrayS16> input, GrayS16 output, int startBand, int lastBand)
      Computes the maximum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing maximum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • average

      public static void average​(Planar<GrayS16> input, GrayS16 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 void average​(Planar<GrayS16> input, GrayS16 output, int startBand, int lastBand)
      Computes the average for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing average pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • median

      public static void median​(Planar<GrayS16> input, GrayS16 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 void median​(Planar<GrayS16> input, GrayS16 output, int startBand, int lastBand)
      Computes the median for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing median pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • stdDev

      public static void stdDev​(Planar<GrayS16> input, GrayS16 output, @Nullable @Nullable GrayS16 avg)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
    • stdDev

      public static void stdDev​(Planar<GrayS16> input, GrayS16 output, @Nullable @Nullable GrayS16 avg, int startBand, int lastBand)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • minimum

      public static void minimum​(Planar<GrayU16> input, GrayU16 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 void minimum​(Planar<GrayU16> input, GrayU16 output, int startBand, int lastBand)
      Computes the minimum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing minimum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • maximum

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

      public static void maximum​(Planar<GrayU16> input, GrayU16 output, int startBand, int lastBand)
      Computes the maximum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing maximum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • average

      public static void average​(Planar<GrayU16> input, GrayU16 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 void average​(Planar<GrayU16> input, GrayU16 output, int startBand, int lastBand)
      Computes the average for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing average pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • median

      public static void median​(Planar<GrayU16> input, GrayU16 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 void median​(Planar<GrayU16> input, GrayU16 output, int startBand, int lastBand)
      Computes the median for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing median pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • stdDev

      public static void stdDev​(Planar<GrayU16> input, GrayU16 output, @Nullable @Nullable GrayU16 avg)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
    • stdDev

      public static void stdDev​(Planar<GrayU16> input, GrayU16 output, @Nullable @Nullable GrayU16 avg, int startBand, int lastBand)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • minimum

      public static void minimum​(Planar<GrayS32> input, GrayS32 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 void minimum​(Planar<GrayS32> input, GrayS32 output, int startBand, int lastBand)
      Computes the minimum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing minimum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • maximum

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

      public static void maximum​(Planar<GrayS32> input, GrayS32 output, int startBand, int lastBand)
      Computes the maximum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing maximum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • average

      public static void average​(Planar<GrayS32> input, GrayS32 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 void average​(Planar<GrayS32> input, GrayS32 output, int startBand, int lastBand)
      Computes the average for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing average pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • median

      public static void median​(Planar<GrayS32> input, GrayS32 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 void median​(Planar<GrayS32> input, GrayS32 output, int startBand, int lastBand)
      Computes the median for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing median pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • stdDev

      public static void stdDev​(Planar<GrayS32> input, GrayS32 output, @Nullable @Nullable GrayS32 avg)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
    • stdDev

      public static void stdDev​(Planar<GrayS32> input, GrayS32 output, @Nullable @Nullable GrayS32 avg, int startBand, int lastBand)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • minimum

      public static void minimum​(Planar<GrayS64> input, GrayS64 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 void minimum​(Planar<GrayS64> input, GrayS64 output, int startBand, int lastBand)
      Computes the minimum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing minimum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • maximum

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

      public static void maximum​(Planar<GrayS64> input, GrayS64 output, int startBand, int lastBand)
      Computes the maximum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing maximum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • average

      public static void average​(Planar<GrayS64> input, GrayS64 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 void average​(Planar<GrayS64> input, GrayS64 output, int startBand, int lastBand)
      Computes the average for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing average pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • median

      public static void median​(Planar<GrayS64> input, GrayS64 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 void median​(Planar<GrayS64> input, GrayS64 output, int startBand, int lastBand)
      Computes the median for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing median pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • stdDev

      public static void stdDev​(Planar<GrayS64> input, GrayS64 output, @Nullable @Nullable GrayS64 avg)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
    • stdDev

      public static void stdDev​(Planar<GrayS64> input, GrayS64 output, @Nullable @Nullable GrayS64 avg, int startBand, int lastBand)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • minimum

      public static void minimum​(Planar<GrayF32> input, GrayF32 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 void minimum​(Planar<GrayF32> input, GrayF32 output, int startBand, int lastBand)
      Computes the minimum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing minimum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • maximum

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

      public static void maximum​(Planar<GrayF32> input, GrayF32 output, int startBand, int lastBand)
      Computes the maximum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing maximum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • average

      public static void average​(Planar<GrayF32> input, GrayF32 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 void average​(Planar<GrayF32> input, GrayF32 output, int startBand, int lastBand)
      Computes the average for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing average pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • median

      public static void median​(Planar<GrayF32> input, GrayF32 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 void median​(Planar<GrayF32> input, GrayF32 output, int startBand, int lastBand)
      Computes the median for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing median pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • stdDev

      public static void stdDev​(Planar<GrayF32> input, GrayF32 output, @Nullable @Nullable GrayF32 avg)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
    • stdDev

      public static void stdDev​(Planar<GrayF32> input, GrayF32 output, @Nullable @Nullable GrayF32 avg, int startBand, int lastBand)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • minimum

      public static void minimum​(Planar<GrayF64> input, GrayF64 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 void minimum​(Planar<GrayF64> input, GrayF64 output, int startBand, int lastBand)
      Computes the minimum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing minimum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • maximum

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

      public static void maximum​(Planar<GrayF64> input, GrayF64 output, int startBand, int lastBand)
      Computes the maximum for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing maximum pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • average

      public static void average​(Planar<GrayF64> input, GrayF64 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 void average​(Planar<GrayF64> input, GrayF64 output, int startBand, int lastBand)
      Computes the average for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing average pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • median

      public static void median​(Planar<GrayF64> input, GrayF64 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 void median​(Planar<GrayF64> input, GrayF64 output, int startBand, int lastBand)
      Computes the median for each pixel across selected bands in the Planar image.
      Parameters:
      input - Planar image
      output - Gray scale image containing median pixel values
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection
    • stdDev

      public static void stdDev​(Planar<GrayF64> input, GrayF64 output, @Nullable @Nullable GrayF64 avg)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
    • stdDev

      public static void stdDev​(Planar<GrayF64> input, GrayF64 output, @Nullable @Nullable GrayF64 avg, int startBand, int lastBand)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      Parameters:
      input - Planar image - not modified
      output - Gray scale image containing average pixel values - modified
      avg - Input Gray scale image containing average image. Can be null
      startBand - First band to be included in the projection
      lastBand - Last band to be included in the projection