# PYME.Analysis.thresholding module¶

PYME.Analysis.thresholding.isodata(img, tol=0.001)

correct isodata implementation - slower than above tolerance indicates fraction of data range when delta is deemed not to have changed

PYME.Analysis.thresholding.isodata_f(img, nbins=255)

calculate isodata threshold - does iterations on histogrammed data rather than raw data to improve speed

img - the image data nbins - the number of bins used for the histogram

PYME.Analysis.thresholding.signalFraction(img, frac, nbins=5000)

threshold to include a certain fraction of the total signal