Module org.scijava.ops.image
Class ComputeHuangThreshold<T extends RealType<T>>
- java.lang.Object
-
- org.scijava.ops.image.threshold.AbstractComputeThresholdHistogram<T>
-
- org.scijava.ops.image.threshold.huang.ComputeHuangThreshold<T>
-
- All Implemented Interfaces:
BiConsumer<Histogram1d<T>,T>,Computers.Arity1<Histogram1d<T>,T>
public class ComputeHuangThreshold<T extends RealType<T>> extends AbstractComputeThresholdHistogram<T>
Implements Huang's threshold method by Huang & Wang.- Author:
- Barry DeZonia, Gabriel Landini
- Implementation Note:
- op names='threshold.huang'
-
-
Constructor Summary
Constructors Constructor Description ComputeHuangThreshold()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longcomputeBin(long[] histogram)Implements Huang's fuzzy thresholding method
Uses Shannon's entropy function (one can also use Yager's entropy function) Huang L.-K.longcomputeBin(Histogram1d<T> hist)TODO-
Methods inherited from class org.scijava.ops.image.threshold.AbstractComputeThresholdHistogram
compute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Methods inherited from interface org.scijava.function.Computers.Arity1
accept
-
-
-
-
Method Detail
-
computeBin
public long computeBin(Histogram1d<T> hist)
TODO- Specified by:
computeBinin classAbstractComputeThresholdHistogram<T extends RealType<T>>- Parameters:
hist- theHistogram1d.- Returns:
- the Huang threshold value
-
computeBin
public static long computeBin(long[] histogram)
Implements Huang's fuzzy thresholding method
Uses Shannon's entropy function (one can also use Yager's entropy function) Huang L.-K. and Wang M.-J.J. (1995) "Image Thresholding by Minimizing the Measures of Fuzziness" Pattern Recognition, 28(1): 41-51
Reimplemented (to handle 16-bit efficiently) by Johannes Schindelin Jan 31, 2011
-
-