A transform can be quickly applied to an image file using the command-line
torchio-transform, which is automatically installed by
during installation of TorchIO:
$ torchio-transform input.nii.gz RandomAffine output.nii.gz --kwargs "degrees=(0,0,10) scales=0.1" --seed 42
For more information, run
3D Slicer GUI¶
3D Slicer is an open-source software platform for medical image informatics, image processing, and three-dimensional visualization.
TorchIO provides a 3D Slicer extension for quick experimentation and visualization of the package features without any coding.
The TorchIO extension can be easily installed using the Extensions Manager.
The code and installation instructions are available on GitHub.
This module can be used to quickly visualize the effect of each transform parameter. That way, users can have an intuitive feeling of what the output of a transform looks like without any coding at all.
Go to the
Sample Data module to get an image we can use:
Click on an image to download, for example MRHead 1,
and go to the
TorchIO Transforms module:
All the data in
Sample Datacan be downloaded and used in the TorchIO Python library using the
Select the input and output volume nodes:
Modify the transform parameters and click on
Hovering the mouse over the transforms will show tooltips extracted from the
You can click on the
Toggle volumes button to switch between input and output