Commit 97468ce9 authored by Martinez-Carvajal German's avatar Martinez-Carvajal German
Browse files

0.99 the threshold for gravel/FM is too high for some samples

parent a66caa42
......@@ -405,8 +405,8 @@ def Compute_Thresholds(Tolerance, Parameters, Image_type, Histograms_without_PVE
if mode == 1 :
Cut_1 = norm.ppf( Tolerance)*Parameters['Sigma1']+ Parameters['Mu1'] # ppf = percent point function
Cut_2a = norm.ppf(0.5-0.5*Tolerance)*Parameters['Sigma2']+ Parameters['Mu2']
Cut_2b = norm.ppf(0.5+0.5*Tolerance)*Parameters['Sigma2']+ Parameters['Mu2']
Cut_3 = norm.ppf(1 - 0.999)*Parameters['Sigma3']+ Parameters['Mu3']
Cut_2b = norm.ppf(0.5+0.5*0.975)*Parameters['Sigma2']+ Parameters['Mu2']
Cut_3 = norm.ppf(1 - 0.975)*Parameters['Sigma3']+ Parameters['Mu3']
elif mode == 2:
Cut_1 = Parameters['Mu2'] - np.sqrt(-2*(Parameters['Sigma2']**2)*np.log(Tolerance))
Cut_2a = Parameters['Mu1'] + np.sqrt(-2*(Parameters['Sigma1']**2)*np.log(Tolerance))
......
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