我正在加载带有scikit-image的TIF文件,并在ipython笔记本(2.2.0版)中内联显示.但是,这样可以在首次显示时图像非常小,当我使用图像右下角的可拖动手柄调整图像时,它只是重新调整图像,同时保留原始图像的分辨率,因此放大时图像非常模糊.这基本上就像ipython正在将我的图像转换为动态缩略图一样.
我也尝试过使用matplotlib plt.imshow(),它具有完全相同的结果.我正在用笔记本开始ipython notebook --pylab inline.
from skimage import io
import matplotlib.pyplot as plt
image_stack = io.MultiImage("my_image.tif")
image = image_stack[0] # it's a multi-page TIF, this gets the first image in the stack
io.imshow(image) # or plt.imshow(image)
io.show() # or plt.show()
Run Code Online (Sandbox Code Playgroud)