Package gov.nih.mipav.model.algorithms
Class AlgorithmHistogram.GrayLevelClass
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToEnd()
DOCUMENT ME!float
getMu()
DOCUMENT ME!float
getOmega()
DOCUMENT ME!int
getThreshold()
DOCUMENT ME!void
removeFromBeginning()
DOCUMENT ME!java.lang.String
toString()
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 classjava.lang.Object
- Returns:
- DOCUMENT ME!
-
-