Class AlgorithmHistogram.GrayLevelClass

  • Enclosing class:
    AlgorithmHistogram

    private class AlgorithmHistogram.GrayLevelClass
    extends java.lang.Object
    Used specifally by the Otsu threshold algorithm to define a gray level object for calculating probabilities.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int index
      DOCUMENT ME!
      private float mu
      DOCUMENT ME!
      private float omega
      DOCUMENT ME!
      private float[] probabilityHistogram
      DOCUMENT ME!
    • Constructor Summary

      Constructors 
      Constructor Description
      GrayLevelClass​(boolean first, float[] probHistogram)
      Creates a new GrayLevelClass object.
    • Field Detail

      • index

        private int index
        DOCUMENT ME!
      • mu

        private float mu
        DOCUMENT ME!
      • omega

        private float omega
        DOCUMENT ME!
      • probabilityHistogram

        private float[] probabilityHistogram
        DOCUMENT ME!
    • Constructor Detail

      • GrayLevelClass

        public GrayLevelClass​(boolean first,
                              float[] probHistogram)
        Creates a new GrayLevelClass object.
        Parameters:
        first - DOCUMENT ME!
        probHistogram - DOCUMENT ME!
    • Method Detail

      • addToEnd

        public final void addToEnd()
        DOCUMENT ME!
      • getMu

        public final float getMu()
        DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • getOmega

        public final float getOmega()
        DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • getThreshold

        public final int getThreshold()
        DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • removeFromBeginning

        public final void removeFromBeginning()
        DOCUMENT ME!
      • toString

        public final java.lang.String toString()
        DOCUMENT ME!
        Overrides:
        toString in class java.lang.Object
        Returns:
        DOCUMENT ME!