I was trying to re-map some pixels of img to different graylevels on a grayscale image label_pix. The mapping and the for-loops are irrelevant and can
img
label_pix