Module org.scijava.ops.image
Class ComputeShanbhagThreshold<T extends RealType<T>>
- java.lang.Object
-
- org.scijava.ops.image.threshold.AbstractComputeThresholdHistogram<T>
-
- org.scijava.ops.image.threshold.shanbhag.ComputeShanbhagThreshold<T>
-
- All Implemented Interfaces:
BiConsumer<Histogram1d<T>,T>,Computers.Arity1<Histogram1d<T>,T>
public class ComputeShanbhagThreshold<T extends RealType<T>> extends AbstractComputeThresholdHistogram<T>
Implements Shanbhag's threshold method.- Author:
- Barry DeZonia, Gabriel Landini
- Implementation Note:
- op names='threshold.shanbhag', priority='100.'
-
-
Constructor Summary
Constructors Constructor Description ComputeShanbhagThreshold()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longcomputeBin(long[] histogram)8Shanhbag A.G.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- the inputHistogram1d- Returns:
- the Shanbhag threshold value
-
computeBin
public static long computeBin(long[] histogram)
8Shanhbag A.G. (1994) "Utilization of Information Measure as a Means
of
Image Thresholding" Graphical Models and Image Processing, 56(5):
414-419
Ported to ImageJ plugin by G.Landini from E Celebi's fourier_0.8
routines
-
-