Extract multiple windows/patches from an (image) array, as defined in another array
I have an image
I have another
I’d like to extract all of these patches from
But I’d like a nice array-based operation to get all of them, if possible.
For same window sizes, we could get views with help from scikit-image’s
Sample run –