I\'ve used from skimage.util import view_as_windows to convert an 10 channel array into a series of patches:
from skimage.util import view_as_windows
step = 2 window = 10 window_shape = (win