I have a 3D array holding voxels from a mri dataset. The model could be stretched along one or more directions. E.g. the voxel size (x,y,z) could be 0.5x0.5x2 mm. Now I want to
You can use TorchIO for that:
import torchio as tio image = tio.ScalarImage(sFileName) resample = tio.Resample(1) resampled = resample(image)