2016-11-02 6 views

答えて

1

img[5:10,20:25]の問題点を教えてください。

import matplotlib.image as mi 
import matplotlib.pyplot as plt 


img = mi.imread('./3.png') 
cropped = img[5:10,20:25] 
f,axarr = plt.subplots(2,1) 
axarr[0].imshow(img) 
axarr[1].imshow(cropped) 
plt.show() 

結果:

enter image description here

関連する問題