I want to down sample image by 2.But is there a faster and vectorized way to implement this without using for loops?
import numpy as np m, n = f.shape h=np.ze