我需要分析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")
plt
是指matplotlib.pyplot
。 - Janne Karila