I\'m trying to optimize this code to correctly follow the Ordered Dithering method.
def orderedDithering(img): size = img.shape new_image = np.zeros(size) #8