Documentation of 'boofcv.alg.feature.color.GHistogramFeatureOps' Java class
GHistogramFeatureOps
boofcv.alg.feature.color

Class GHistogramFeatureOps



  • public class GHistogramFeatureOps
    extends java.lang.Object

    Generic version of HistogramFeatureOps which determines image type at runtime. See

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void histogram(double[] colors, int length, Histogram_F64 histogram)
      Computes a coupled histogram from a list of colors.
      static <T extends ImageGray>
      void
      histogram(Planar<T> image, Histogram_F64 histogram)
      Computes a joint histogram for a planar image.
      static <T extends ImageGray>
      void
      histogram(T image, double minPixelValue, double maxPixelValue, TupleDesc_F64 histogram)
      Computes a single-band normalized histogram for any single band image.
      • Methods inherited from class java.lang.Object

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

      • GHistogramFeatureOps

        public GHistogramFeatureOps()
    • Method Detail

      • histogram

        public static <T extends ImageGray> void histogram(T image,
                                                           double minPixelValue,
                                                           double maxPixelValue,
                                                           TupleDesc_F64 histogram)
        Computes a single-band normalized histogram for any single band image.
        Parameters:
        image - Input image. Not modified.
        minPixelValue - Minimum possible value for a pixel.
        maxPixelValue - Maximum possible value for a pixel.
        histogram - The output histogram.
      • histogram

        public static <T extends ImageGray> void histogram(Planar<T> image,
                                                           Histogram_F64 histogram)
        Computes a joint histogram for a planar image. Since it's a joint distribution the histogram can become huge (and too sparse) if bin sizes are used that are too big. Also consider computing the histogram independently in each band.
        Parameters:
        image - Input image. Not modified.
        histogram - Output for the histogram. Must be correctly configured first.
      • histogram

        public static void histogram(double[] colors,
                                     int length,
                                     Histogram_F64 histogram)
        Computes a coupled histogram from a list of colors. If the input is for integer values then add one to the maximum value. For example if the range of values is 0 to 255, then make it 0 to 256.
        Parameters:
        colors - List of colors stored in an interleaved format
        length - Length of usable portion of colors
        histogram - Output and histogram configuration.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.