Commit 18af04d1 authored by Martinez-Carvajal German's avatar Martinez-Carvajal German
Browse files

a little change in the initialisation, to make it faster

parent 97468ce9
......@@ -418,6 +418,8 @@ def Compute_Thresholds(Tolerance, Parameters, Image_type, Histograms_without_PVE
Parameters['Cut_2b'] = Cut_2b
Parameters['Cut_3' ] = Cut_3
# This is a special line #
# Plot
# In fig(2) Plot of the optimized trimodal model AND the cuts
def gauss(x,mu,sigma,a):
......@@ -722,9 +724,9 @@ def Sigma_init(Image_type):
Sigma2_ini = 2**8/50
Sigma3_ini = 2**8/50
if Image_type == np.uint16:
Sigma1_ini = 2**16/100 # very small vallue
Sigma2_ini = 2**16/100
Sigma3_ini = 2**16/100
Sigma1_ini = 2**16/50 # very small vallue
Sigma2_ini = 2**16/50
Sigma3_ini = 2**16/50
return (Sigma1_ini, Sigma2_ini, Sigma3_ini)
def Peak_Height_init (Histograms_without_PVE, Image_type, Mu1_ini, Mu2_ini, Mu3_ini, N_bins):
......
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