Class ComputeMaxLikelihoodThreshold<T extends RealType<T>>

    • Constructor Detail

      • ComputeMaxLikelihoodThreshold

        public ComputeMaxLikelihoodThreshold()
    • Method Detail

      • 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.