如果写for循环提取,时间很漫长。使用如下函数速度非常快。 https://scikit-image.org/docs/0.9.x/api/skimage.util.html#view-as-windows