Module org.scijava.ops.image
Class ComputeLiThreshold<T extends RealType<T>>
- java.lang.Object
-
- org.scijava.ops.image.threshold.AbstractComputeThresholdHistogram<T>
-
- org.scijava.ops.image.threshold.li.ComputeLiThreshold<T>
-
- All Implemented Interfaces:
BiConsumer<Histogram1d<T>,T>,Computers.Arity1<Histogram1d<T>,T>
public class ComputeLiThreshold<T extends RealType<T>> extends AbstractComputeThresholdHistogram<T>
Implements Li's threshold method by Li & Lee, and Li & Tam, and Sezgin & Sankur.- Author:
- Barry DeZonia, Gabriel Landini
- Implementation Note:
- op names='threshold.li', priority='100.'
-
-
Constructor Summary
Constructors Constructor Description ComputeLiThreshold()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longcomputeBin(long[] histogram)Implements Li's Minimum Cross Entropy thresholding method
This implementation is based on the iterative version (Ref.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 Li threshold value
-
computeBin
public static long computeBin(long[] histogram)
Implements Li's Minimum Cross Entropy thresholding method
This implementation is based on the iterative version (Ref. 2) of the
algorithm
1) Li C.H. and Lee C.K. (1993) "Minimum Cross Entropy Thresholding"
Pattern Recognition, 26(4): 617-625
2) Li C.H. and Tam P.K.S. (1998) "An Iterative Algorithm for Minimum
Cross Entropy Thresholding"Pattern Recognition Letters, 18(8):
771-776
3) Sezgin M. and Sankur B. (2004) "Survey over Image Thresholding
Techniques and Quantitative Performance Evaluation" Journal of
Electronic Imaging, 13(1): 146-165
http://citeseer.ist.psu.edu/sezgin04survey.html
Ported to ImageJ plugin by G.Landini from E Celebi's fourier_0.8
routines
-
-