Class ComputeMinimumThreshold<T extends RealType<T>>

    • Constructor Detail

      • ComputeMinimumThreshold

        public ComputeMinimumThreshold()
    • 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.
        Threshold t is such that yt−1 > yt ≤ yt+1.
        Images with histograms having extremely unequal peaks or a broad and
        ??at valley are unsuitable for this method.