Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

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
from __future__ import print_function
import matplotlib.pyplot as plt
import numpy
import spam.plotting.greyLevelHistogram
import numpy
def findHistogramPeaks(image, valley1=20000, valley2=[], phases=2, gaussianFit=False, returnSigma=False, mask=True, showGraph=False, greyRange=[0,65535], bins=256):
......@@ -54,7 +53,8 @@ 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