2016-11-02 4 views

Antwort

1

Was ist das Problem mit 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() 

Ergebnis:

enter image description here

Verwandte Themen