Class GImageBandMath


  • public class GImageBandMath
    extends java.lang.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
      GImageBandMath()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends boofcv.struct.image.ImageGray<T>>
      void
      average​(boofcv.struct.image.Planar<T> input, T output)
      Computes the average for each pixel across all bands in the Planar image.
      static <T extends boofcv.struct.image.ImageGray<T>>
      void
      average​(boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>>
      void
      maximum​(boofcv.struct.image.Planar<T> input, T output)
      Computes the maximum for each pixel across all bands in the Planar image.
      static <T extends boofcv.struct.image.ImageGray<T>>
      void
      maximum​(boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>>
      void
      median​(boofcv.struct.image.Planar<T> input, T output)
      Computes the median for each pixel across all bands in the Planar image.
      static <T extends boofcv.struct.image.ImageGray<T>>
      void
      median​(boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>>
      void
      minimum​(boofcv.struct.image.Planar<T> input, T output)
      Computes the minimum for each pixel across all bands in the Planar image.
      static <T extends boofcv.struct.image.ImageGray<T>>
      void
      minimum​(boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>>
      void
      stdDev​(boofcv.struct.image.Planar<T> input, T output, T avg)
      Computes the standard deviation for each pixel across all bands in the Planar image.
      static <T extends boofcv.struct.image.ImageGray<T>>
      void
      stdDev​(boofcv.struct.image.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 Detail

      • GImageBandMath

        public GImageBandMath()
    • Method Detail

      • minimum

        public static <T extends boofcv.struct.image.ImageGray<T>> void minimum​(boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>> void minimum​(boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>> void maximum​(boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>> void maximum​(boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>> void average​(boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>> void average​(boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>> void median​(boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>> void median​(boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>> void stdDev​(boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>> void stdDev​(boofcv.struct.image.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