Yes, resizing in general changes the pixel values. For resizing targets (e.g. segmentation masks) we usually apply “nearest” interpolation mode. In this mode, resizing is approx equivalent to removing columns and lines => that new pixels are exactly the same to the source. For other modes, new pixels are interpolated => new pixel will have float values between 0 and 1. For resizing images we can apply bilinear or cubic interpolation mode.