2
我有以下的乳房X線照片圖像和我想讀這個使用PIL圖像,然後使用matplotlib繪製它:PIL圖像和matplotlib陰謀被飽和的黑色和白色png圖片
代碼我現在用的就是:
%matplotlib inline
from PIL import Image
from matplotlib.pyplot import imshow
from scipy.misc import imread
path = './sample.png'
image = Image.open(path).convert('RGB')
imshow(image)
但我得到這個圖片:
爲什麼它不顯示正確的圖像?