Hello all, I am looking for the resample layer in pytorch that can perform the action likes https://itk.org/ITKExamples/src/Filtering/ImageGrid/ResampleAnImage/Documentation.html 27
Given a 3D input with a spacing of 1x1x1 mm. I want to resample the image to the other resolution for training, as 1.5x1.5x1.5 mm. Any layer in pytorch can do it? I found the upsample and nn.functional.interpolate but I am not sure it allow to change spacing or not