python 如何写tif文件
python 如何写tif文件
tiff_list = None
cnt_num = 0
for c in dirCellInfo['Filelist']:
image = tifffile.imread(c)
new_gray = image[np.newaxis, ::]
if cnt_num == 0:
tiff_list = new_gray
else:
tiff_list = np.append(tiff_list, new_gray, axis=0)
cnt_num = cnt_num + 1
if cnt_num >= 10:
break
tifffile.imsave(self.leOutput.text() + '/CellVideo.tif', tiff_list)