Commit 46cb9cbb authored by Edward Andò's avatar Edward Andò
Browse files

histogram tools import for testing

parent 46469e88
Pipeline #47834 failed with stages
in 11 minutes and 28 seconds
......@@ -2,7 +2,6 @@ from __future__ import print_function
import matplotlib.pyplot as plt
import numpy
import spam.plotting.greyLevelHistogram
def findHistogramPeaks(image, valley1=20000, valley2=[], phases=2, gaussianFit=False, returnSigma=False, mask=True, showGraph=False, greyRange=[0,65535], bins=256):
......@@ -54,6 +53,7 @@ def findHistogramPeaks(image, valley1=20000, valley2=[], phases=2, gaussianFit=F
The peaks of the phases of the image.
"""
import scipy.optimize
import spam.plotting.greyLevelHistogram
def gauss(x,a,mu,sigma, offset):
return a*numpy.exp(-1*(x-mu)**2/(2*sigma**2))+offset
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment