Solved by fepegar in post #2 
              
              
                Hi, @Dhruv_Jain. As this is not a PyTorch question, you can just ask on the TorchIO GitHub Discussions next time: Discussions · fepegar/torchio · GitHub 
There are many examples in the documentation showing how to do that. Here’s a snippet: 
In [1]: import torchio as tio

In [2]: t1 = tio.ScalarImag…