Révision 12 bin/image2geometry/measure_sepal.py

measure_sepal.py (revision 12)
48 48
#projected2Dimage_hight=outdir+"/hight_"+imnameroot+"2D.png"
49 49

  
50 50
os.system("mkdir -p "+outputdir)
51
os.system("mkdir -p "+symdir)
52 51

  
52

  
53 53
outname = outputfile.split('/')[-1]
54 54
outroot = outname.split('.')[0]
55 55

  
......
146 146
FILE = open(outputfile,"a")
147 147
FILE.write(imnameroot+';')
148 148

  
149
print("Longitudinal section:")
149 150
outfile=outroot+'_up_longitudinal.csv'
150 151
graph_name= outputdir+imnameroot+'_up_longitudinal.png'
151
length_x, flatlength_x, height_x, R, R21, R22, R41, R423, R44=analyze_curve1(imnameroot, xup, x_pixelsize, outfile, graph_name)
152

  
153
length_x, flatlength_x, height_x, R, R21, R22, R41, R423, R44=analyze_curve1(imnameroot, xup, x_pixelsize, outfile, "Longitudinal", graph_name)
152 154
os.system("rm "+outfile)
153 155

  
154 156
FILE.write(str(length_x)+';'+str(flatlength_x)+';'+str(height_x)+';'+str(R)+';'+str(R21)+';'+str(R22)+';'+str(R41)+';'+str(R423)+';'+str(R44)+';')
155 157

  
158
print("Transversal section:")
156 159
outfile=outroot+'_up_transversal.csv'
157 160
graph_name= outputdir+imnameroot+'_up_transversal.png'
158
length_y, flatlength_y, height_y, R, R21, R22, R41, R423, R44=analyze_curve1(imnameroot, yup, y_pixelsize, outfile, graph_name)
161
length_y, flatlength_y, height_y, R, R21, R22, R41, R423, R44=analyze_curve1(imnameroot, yup, y_pixelsize, outfile, "Transversal", graph_name)
159 162
os.system("rm "+outfile)
160 163

  
161 164
FILE.write(str(length_y)+';'+str(flatlength_y)+';'+str(height_y)+';'+str(R)+';'+str(R21)+';'+str(R22)+';'+str(R41)+';'+str(R423)+';'+str(R44)+';')

Formats disponibles : Unified diff