Undo/Revert Resize and CenterCrop transformations

Hi,
after I use the transformations Resize and CenterCrop I would like to go back to the original image, with the integer RGB values (in [0,255]) for the channels. How can I do this?

I need it because I have to open it with opencv, that only accepts this format to correctly open the image.

Thanks

Resize and CenterCrop do not normalize the image, so the pixel values should still be in the same range.
You can hardly undo a cropping operation, as you lose information during the crop.

If you want to undo the normalization, you could multiply with the same stddev and add the mean to the tensor.