0
我正在試圖製作一個圖像金字塔,應該只是原始圖像的較小版本。相反,我得到了圖像中看起來像靜態的東西。skimage金字塔Guassian不按預期方式工作
這裏是我的代碼:
img = Image.open('orange.jpg').convert('L')
in_array = np.array(img)
for i,arr in enumerate(transform.pyramid_gaussian(in_array, max_layer=6, downscale=2, sigma=1)):
Image.fromarray(arr,'L').save('orange-%s.jpg' % i)
這裏是我輸入:
但這裏的第一個圖像輸出:
輸出將是一個雙數組。 – user2970139