Added cython code to loop over a block around each pixel in a numpy array.