Tools for loading, augmenting and writing 3D medical images on PyTorch.
Project description
TorchIO
🎉 News: the paper is out! 🎉
See the Credits section below for more information.
TorchIO is a Python package containing a set of tools to efficiently read, sample and write 3D medical images in deep learning applications written in PyTorch, including intensity and spatial transforms for data augmentation and preprocessing. Transforms include typical computer vision operations such as random affine transformations and also domain-specific ones such as simulation of intensity artifacts due to MRI magnetic field inhomogeneity or k-space motion artifacts.
This package has been greatly inspired by NiftyNet.
Credits
If you like this repository, please click on Star!
If you use this package for your research, please cite the paper:
BibTeX entry:
@misc{fern2020torchio,
title={TorchIO: a Python library for efficient loading, preprocessing, augmentation and patch-based sampling of medical images in deep learning},
author={Fernando Pérez-García and Rachel Sparks and Sebastien Ourselin},
year={2020},
eprint={2003.04696},
archivePrefix={arXiv},
primaryClass={eess.IV}
}
Documentation
The documentation is hosted on
Read the Docs.
It is a work in progress, but some classes such as
ImagesDataset
are already fairly well documented.
History
0.13.0 (24-02-2020)
- Add Subject class
- Add random blur transform
- Add lambda transform
- Add random patches swapping transform
- Add MRI k-space ghosting artefact augmentation
0.12.0 (21-01-2020)
- Add ToCanonical transform
- Add CenterCropOrPad transform
0.11.0 (15-01-2020)
- Add Resample transform
0.10.0 (15-01-2020)
- Add Pad transform
- Add Crop transform
0.9.0 (14-01-2020)
- Add CLI tool to transform an image from file
0.8.0 (11-01-2020)
- Add Image class
0.7.0 (02-01-2020)
- Make transforms use PyTorch tensors consistently
0.6.0 (02-01-2020)
- Add support for NRRD
0.5.0 (01-01-2020)
- Add bias field transform
0.4.0 (29-12-2019)
- Add MRI k-space motion artefact augmentation
0.3.0 (21-12-2019)
- Add Rescale transform
- Add support for multimodal data and missing modalities
0.2.0 (2019-12-06)
- First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file torchio-0.13.22.tar.gz
.
File metadata
- Download URL: torchio-0.13.22.tar.gz
- Upload date:
- Size: 21.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b626aeca76553c8d3f6d7321cb07029d5e6bfff569850e06cfbcc9333d09ca8d |
|
MD5 | b0ade6bd48c25e6df316a3e56e552541 |
|
BLAKE2b-256 | 0af26680e2d13f0186d204e17d9262a77752b61c699d9ac5331d7a1373f91c6d |
File details
Details for the file torchio-0.13.22-py2.py3-none-any.whl
.
File metadata
- Download URL: torchio-0.13.22-py2.py3-none-any.whl
- Upload date:
- Size: 58.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1fdec3c2f6c7f2665c1e4769e085a34c48f1834b44b7a9495a62459a7f05d0f |
|
MD5 | c147c0aed0513b0484263aee7a0df1e1 |
|
BLAKE2b-256 | 85ff31b265ec7ad8e837738b2fbdd64ed591b65dc3e6a74f709ed311a1e58fa5 |