Class ComputeIntermodesThreshold<T extends RealType<T>>

    • Constructor Detail

      • ComputeIntermodesThreshold

        public ComputeIntermodesThreshold()
    • Method Detail

      • computeBin

        public static long computeBin​(long[] histogram)
        J. M. S. Prewitt and M. L. Mendelsohn, "The analysis of cell images,"
        in
        Annals of the New York Academy of Sciences, vol. 128, pp. 1035-1053,
        1966.
        ported to ImageJ plugin by G.Landini from Antti Niemisto's Matlab
        code
        (relicensed BSD 2-12-13)
        Original Matlab code Copyright (C) 2004 Antti Niemisto
        See http://www.cs.tut.fi/~ant/histthresh/ for an excellent slide
        presentation and the original Matlab code.

        Assumes a bimodal histogram. The histogram needs is smoothed (using a
        running average of size 3, iteratively) until there are only two
        local
        maxima.
        j and k
        Threshold t is (j+k)/2.
        Images with histograms having extremely unequal peaks or a broad and
        ??at valley are unsuitable for this method.