resector
Implementation of a TorchIO transform used to simulate a resection cavity from a T1-weighted brain MRI and a corresponding geodesic information flows (GIF) brain parcellation (version 3.0).
The corresponding talk at MICCAI 2020 is available on YouTube:
Credit
If you use this library for your research, please cite the following publications:
Bibtex:
@inproceedings{perez-garcia_simulation_2020,
address = {Cham},
series = {Lecture {Notes} in {Computer} {Science}},
title = {Simulation of {Brain} {Resection} for {Cavity} {Segmentation} {Using} {Self}-supervised and {Semi}-supervised {Learning}},
isbn = {978-3-030-59716-0},
doi = {10.1007/978-3-030-59716-0\_12},
language = {en},
booktitle = {Medical {Image} {Computing} and {Computer} {Assisted} {Intervention} {\textendash} {MICCAI} 2020},
publisher = {Springer International Publishing},
author = {P{\'e}rez-Garc{\'i}a, Fernando and Rodionov, Roman and Alim-Marvasti, Ali and Sparks, Rachel and Duncan, John S. and Ourselin, S{\'e}bastien},
year = {2020},
keywords = {Segmentation, Self-supervised learning, Neurosurgery},
pages = {115--125},
}
@article{perez-garcia_self-supervised_2021,
title = {A self-supervised learning strategy for postoperative brain cavity segmentation simulating resections},
issn = {1861-6429},
url = {https://doi.org/10.1007/s11548-021-02420-2},
doi = {10.1007/s11548-021-02420-2},
language = {en},
urldate = {2021-06-14},
journal = {International Journal of Computer Assisted Radiology and Surgery},
author = {P{\'e}rez-Garc{\'i}a, Fernando and Dorent, Reuben and Rizzi, Michele and Cardinale, Francesco and Frazzini, Valerio and Navarro, Vincent and Essert, Caroline and Ollivier, Ir{\`e}ne and Vercauteren, Tom and Sparks, Rachel and Duncan, John S. and Ourselin, S{\'e}bastien},
month = jun,
year = {2021},
file = {Springer Full Text PDF:/Users/fernando/Zotero/storage/SM9WHUB7/P{\'e}rez-Garc{\'i}a et al. - 2021 - A self-supervised learning strategy for postoperat.pdf:application/pdf},
}
Installation
Using conda is recommended:
conda create --name resenv python=3.8 --yes && conda activate resenv
pip install light-the-torch
ltt install torch
pip install git+https://github.com/fepegar/resector
resect --help
Usage
resect t1.nii.gz gif_parcellation.nii.gz t1_resected.nii.gz t1_resection_label.nii.gz
TorchIO, which is installed with resector, can be used to download some sample images:
T1=`python -c "import torchio as tio; print(tio.datasets.FPG().t1.path)"`
GIF=`python -c "import torchio as tio; print(tio.datasets.FPG().seg.path)"`
resect $T1 $GIF t1_resected.nii.gz t1_resection_label.nii.gz
Run resect --help for more options.
Funding
This work was funded by the Engineering and Physical Sciences Research Council (EPSRC) and the Wellcome Trust.
It was additionally supported by the EPSRC-funded UCL Centre for Doctoral Training in Intelligent, Integrated Imaging in Healthcare (i4health) and the Wellcome / EPSRC Centre for Interventional and Surgical Sciences (WEISS).
Metadata
Release files for resector 0.2.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| resector-0.2.10.tar.gz | 9.4 MB | Without provenance | Details for resector-0.2.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| resector-0.2.10-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for resector-0.2.10-py2.py3-none-any.whl |
Total release size: 9.5 MB
Release files / resector-0.2.10.tar.gz
| Download URL | resector-0.2.10.tar.gz |
|---|---|
| Size | 9.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3d01a8172a902bf61595534e230d88436a8969dee9d7ec59264f2c6ad7d7fae
|
|
BLAKE2b-256 checksum How to use checksums |
960229338de7253cebd87336f423670dcff8be4816d86af220eefef3edfad817
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / resector-0.2.10-py2.py3-none-any.whl
| Download URL | resector-0.2.10-py2.py3-none-any.whl |
|---|---|
| Size | 86.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
233571a2888392e9c3668f5f17615954191eb6ff59253bc4e0b65f612c9b453e
|
|
BLAKE2b-256 checksum How to use checksums |
a53c8ef88acb3e5048397260ab835a5fea55d44ed171c0bcec10f58a7405c0e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for resector 0.2.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.