i, j = np.mgrid[0 : skeleton.shape[0], 0 : skeleton.shape[1]]