I have a 3D numpy array, which is a stack of 100 300x300 images. I want to resize all the images in the stack to be 200x200. I tried to use the numpy resize function:
import numpy as np
img_stack_sm = np.resize(img_stack, (100, 200, 200))
...but doing so scrambles the images (as shown by plotting). How can this be done in one pass? Thank you.