问题描述
我有多张图像,我想将每张22张图像保存在TIFF文件中。我使用glob存储22张图像,并将它们保存在TIFF单个文件中。我使用filenames
glob
中
for i,ci in enumerate(coefficients):
plt.imshow(ci.reshape(1,-1),extent=[0,3844,i + 0.5,i +1.5],cmap='inferno',aspect='auto',interpolation='nearest')
plt.ylim(0.5,len(coeffs)-0.5)
plt.yticks(range(1,len(coeffs)),['cD5','cD4','cD3','cD2','cD1'])
plt.axis('off')
plt.savefig(FirstPartPathOutput+SecondPartPathOutput+'/spec_'+isPreictal+'_'+str(nSpectogram+1)+'_'+str(k)+'.png')
legendOfOutput=legendOfOutput+' '+str(nSpectogram+1)+' '+str(k) +' '+SecondPartPathOutput+'/spec_'+isPreictal+'_'+str(nSpectogram+1)+'_'+str(k) +'.png\n'
if k==21:
filenames = glob.glob(FirstPartPathOutput+SecondPartPathOutput+'/spec_'+isPreictal+'_'+str(nSpectogram+1)+'_'+str(k) + "/*.png")
plt.show()
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)