Class Histogram


  • public class Histogram
    extends java.lang.Object
    An image histogram.
    • Field Detail

      • histogram

        protected int[][] histogram
      • numSamples

        protected int numSamples
      • minValue

        protected int[] minValue
      • maxValue

        protected int[] maxValue
      • minFrequency

        protected int[] minFrequency
      • maxFrequency

        protected int[] maxFrequency
      • mean

        protected float[] mean
      • isGray

        protected boolean isGray
    • Constructor Detail

      • Histogram

        public Histogram()
      • Histogram

        public Histogram​(int[] pixels,
                         int w,
                         int h,
                         int offset,
                         int stride)
    • Method Detail

      • isGray

        public boolean isGray()
      • getNumSamples

        public int getNumSamples()
      • getFrequency

        public int getFrequency​(int value)
      • getFrequency

        public int getFrequency​(int channel,
                                int value)
      • getMinFrequency

        public int getMinFrequency()
      • getMinFrequency

        public int getMinFrequency​(int channel)
      • getMaxFrequency

        public int getMaxFrequency()
      • getMaxFrequency

        public int getMaxFrequency​(int channel)
      • getMinValue

        public int getMinValue()
      • getMinValue

        public int getMinValue​(int channel)
      • getMaxValue

        public int getMaxValue()
      • getMaxValue

        public int getMaxValue​(int channel)
      • getMeanValue

        public float getMeanValue()
      • getMeanValue

        public float getMeanValue​(int channel)