Module org.scijava.ops.image
Class ComputeMomentsThreshold<T extends RealType<T>>
- java.lang.Object
-
- org.scijava.ops.image.threshold.AbstractComputeThresholdHistogram<T>
-
- org.scijava.ops.image.threshold.moments.ComputeMomentsThreshold<T>
-
- All Implemented Interfaces:
BiConsumer<Histogram1d<T>,T>,Computers.Arity1<Histogram1d<T>,T>
public class ComputeMomentsThreshold<T extends RealType<T>> extends AbstractComputeThresholdHistogram<T>
Implements a moments based threshold method by Tsai.- Author:
- Barry DeZonia, Gabriel Landini
- Implementation Note:
- op names='threshold.moments', priority='100.'
-
-
Constructor Summary
Constructors Constructor Description ComputeMomentsThreshold()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longcomputeBin(long[] histogram)W.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 Moments threshold value
-
computeBin
public static long computeBin(long[] histogram)
W. Tsai, "Moment-preserving thresholding: a new approach," Computers.Arity1
Vision, Graphics, and Image Processing, vol. 29, pp. 377-393, 1985.
Ported to ImageJ plugin by G.Landini from the the open source project
FOURIER 0.8 by M. Emre Celebi , Department of Computer Science,
Louisiana State University in Shreveport, Shreveport, LA 71115, USA
http://sourceforge.net/projects/fourier-ipal
http://www.lsus.edu/faculty/~ecelebi/fourier.htm
-
-