Module org.scijava.ops.image
Class ComputeRosinThreshold<T extends RealType<T>>
- java.lang.Object
-
- org.scijava.ops.image.threshold.AbstractComputeThresholdHistogram<T>
-
- org.scijava.ops.image.threshold.rosin.ComputeRosinThreshold<T>
-
- All Implemented Interfaces:
BiConsumer<Histogram1d<T>,T>,Computers.Arity1<Histogram1d<T>,T>
public class ComputeRosinThreshold<T extends RealType<T>> extends AbstractComputeThresholdHistogram<T>
Implements Rosin's threshold method. From : Rosin, Paul L. "Unimodal thresholding." Pattern recognition 34.11 (2001): 2083-2096.Implementation inspired/copied from Paul Rosin C implementation.
- Author:
- Hadrien Mary
- Implementation Note:
- op names='threshold.rosin', priority='100.'
-
-
Constructor Summary
Constructors Constructor Description ComputeRosinThreshold()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longcomputeBin(long[] hist)longcomputeBin(Histogram1d<T> histo)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> histo)
TODO- Specified by:
computeBinin classAbstractComputeThresholdHistogram<T extends RealType<T>>- Parameters:
histo- theHistogram1d- Returns:
- the Rosin threshold value
-
computeBin
public static long computeBin(long[] hist)
-
-