public final class HistogramThreshold
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
maximumEntropy(int[] hist)
Equivalent to calling maximumEntropy(hist, null).
|
static int |
maximumEntropy(int[] hist,
ProgressListener progressListener)
Calculate maximum entropy split of a histogram.
|
public static int maximumEntropy(int[] hist)
hist
- histogram to be thresholded.maximumEntropy(int[], net.sf.ij_plugins.util.progress.ProgressListener)
public static int maximumEntropy(int[] hist, ProgressListener progressListener)
t
. First interval are values less than
t
, second interval are values equal or larger than t
.
If all values in hist
are zero, the split, return value, is set to zero.hist
- histogram to be thresholded.progressListener
- progress listener, can be null
.