将原始数据保存为tif

时间:2013-10-30 04:04:04

标签: python image matplotlib tiff

我需要在tif文件中分析选择作为子矩阵的图像的一部分。我想要原始格式的图像,没有多余的装饰(缩放,轴,标签等)......我怎么能这样做?

这是我现在使用的代码:

 submatrix = im[x_min:x_max, y_min:y_max]
 plt.imshow(submatrix)
 plt.savefig("subplot_%03i_%03i.tif" % (index, peak_number), format = "tif")

0 个答案:

没有答案
相关问题