Module org.scijava.ops.image
Class ComputeMaxLikelihoodThreshold<T extends RealType<T>>
- java.lang.Object
-
- org.scijava.ops.image.threshold.AbstractComputeThresholdHistogram<T>
-
- org.scijava.ops.image.threshold.maxLikelihood.ComputeMaxLikelihoodThreshold<T>
-
- All Implemented Interfaces:
BiConsumer<Histogram1d<T>,T>,Computers.Arity1<Histogram1d<T>,T>
public class ComputeMaxLikelihoodThreshold<T extends RealType<T>> extends AbstractComputeThresholdHistogram<T>
Implements a maximum likelihood threshold method by Dempster, Laird, & Rubin and Glasbey.- Author:
- Barry DeZonia
- Implementation Note:
- op names='threshold.maxLikelihood'
-
-
Constructor Summary
Constructors Constructor Description ComputeMaxLikelihoodThreshold()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longcomputeBin(long[] histogram)T = th_maxlik(I,n)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 Max Likelihood threshold value
-
computeBin
public static long computeBin(long[] histogram)
T = th_maxlik(I,n)Find a global threshold for a grayscale image using the maximum
likelihood via expectation maximization method.In: I grayscale image n maximum graylevel (defaults to 255)
Out: T threshold
References:
A. P. Dempster, N. M. Laird, and D. B. Rubin, "Maximum likelihood
from incomplete data via the EM algorithm," Journal of the Royal
Statistical Society, Series B, vol. 39, pp. 1-38, 1977.C. A. Glasbey,
"An analysis of histogram-based thresholding algorithms," CVGIP:
Graphical Models and Image Processing, vol. 55, pp. 532-537, 1993.Copyright (C) 2004-2013 Antti NiemistĖ See README for more copyright
information.
-
-