img = img.astype(np.int16) dst = img + 64 dst = np.clip(dst, 0, 255).astype(np.uint8) >>>dst[0, :] array([64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78 ...