x, y = np.mgrid[0 : pixel_data.shape[0], 0 : pixel_data.shape[1]]