imgProcessor.measure package¶
Submodules¶
imgProcessor.measure.FitHistogramPeaks module¶
-
class
imgProcessor.measure.FitHistogramPeaks.
FitHistogramPeaks
(img, binEveryNPxVals=10, fitFunction=<function gaussian at 0x0000000005FADAC8>, maxNPeaks=4, debug=False)[source]¶ Bases:
object
try to fit the histogram of an image as an addition of 2 GAUSSian distributions stores the position the the peaks in self.fitParams
-
imgProcessor.measure.FitHistogramPeaks.
plotFitResult
(fit, show_legend=True, show_plots=True, save_to_file=False, foldername='', filename='', filetype='png')[source]¶
-
imgProcessor.measure.FitHistogramPeaks.
plotSet
(imgDir, posExTime, outDir, show_legend, show_plots, save_to_file, ftype)[source]¶ creates plots showing both found GAUSSIAN peaks, the histogram, a smoothed histogram from all images within [imgDir]
posExTime - position range of the exposure time in the image name e.g.: img_30s.jpg -> (4,5) outDir - dirname to save the output images show_legend - True/False show_plots - display the result on screen save_to_file - save the result to file ftype - file type of the output images