No project description provided
Project description
Stroke Segmentor
State-of-the-art ischemic stroke lesion segmentation in MRI
Installation
With a Python 3.9+ environment, you can install stroke_segmentor directly from PyPI:
pip install stroke_segmentor
Use Cases and Tutorials
A minimal example to create a segmentation could look like this:
from stroke_segmentor.inferer import Inferer
inferer = Inferer()
pred = inferer.infer(
adc_path="path/to/adc.nii.gz",
dwi_path="path/to/dwi.nii.gz",
segmentation_path="seg.nii.gz", # optional. the numpy array is always returned for direct usage
)
Logging
By default our package is silent, although we do use logging under the hood.
If you want, you can enable it like this:
from loguru import logger
logger.enable("stroke_segmentor")
Citation
[!IMPORTANT]
stroke_segmentoris based on DeepISLES and offers its NVAUTO algorithm as part of the BrainLesion suite.
Please cite all relevant manuscripts!
DeepISLES
de la Rosa, Ezequiel, et al. "DeepISLES: a clinically validated ischemic stroke segmentation model from the ISLES'22 challenge." Nature Communications 16.1 (2025): 7357.
@article{de2025deepisles,
title={DeepISLES: a clinically validated ischemic stroke segmentation model from the ISLES'22 challenge},
author={de la Rosa, Ezequiel and Reyes, Mauricio and Liew, Sook-Lei and Hutton, Alexandre and Wiest, Roland and Kaesmacher, Johannes and Hanning, Uta and Hakim, Arsany and Zubal, Richard and Valenzuela, Waldo and others},
journal={Nature Communications},
volume={16},
number={1},
pages={7357},
year={2025},
publisher={Nature Publishing Group UK London}
}
BrainLesion Suite
Kofler, F., Rosier, M., Astaraki, M., Möller, H., Mekki, I. I., Buchner, J. A., ... & Menze, B. (2025). BrainLesion Suite: A Flexible and User-Friendly Framework for Modular Brain Lesion Image Analysis. arXiv preprint arXiv:2507.09036.
@article{kofler2025brainlesion,
title={BrainLesion Suite: A Flexible and User-Friendly Framework for Modular Brain Lesion Image Analysis},
author={Kofler, Florian and Rosier, Marcel and Astaraki, Mehdi and M{\"o}ller, Hendrik and Mekki, Ilhem Isra and Buchner, Josef A and Schmick, Anton and Pfiffer, Arianna and Oswald, Eva and Zimmer, Lucas and others},
journal={arXiv preprint arXiv:2507.09036},
year={2025}
}
NVAUTO Algorithm
Siddique, M. M. R., Yang, D., He, Y., Xu, D., & Myronenko, A. (2022). Automated ischemic stroke lesion segmentation from 3D MRI. arXiv preprint arXiv:2209.09546.
@article{siddique2022automated,
title={Automated ischemic stroke lesion segmentation from 3D MRI},
author={Siddique, Md Mahfuzur Rahman and Yang, Dong and He, Yufan and Xu, Daguang and Myronenko, Andriy},
journal={arXiv preprint arXiv:2209.09546},
year={2022}
}
Contributing
We welcome all kinds of contributions from the community!
Reporting Bugs, Feature Requests and Questions
Please open a new issue here.
Code contributions
Nice to have you on board! Please have a look at our CONTRIBUTING.md file.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stroke_segmentor-0.0.3.tar.gz.
File metadata
- Download URL: stroke_segmentor-0.0.3.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecd746a0d12910e331318153d793d6b3ac1a3526c08cb83539245d33cf33d6b2
|
|
| MD5 |
0e6bae1e5558e96b95b85f2370aad584
|
|
| BLAKE2b-256 |
4f9026741e472c8564c441257f8a963961c6f386e76ab8801fafdcac2a890c66
|
File details
Details for the file stroke_segmentor-0.0.3-py3-none-any.whl.
File metadata
- Download URL: stroke_segmentor-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1fe08468e074732e6b0d8c958fb63ef8826902750be24d471ff7f88102ed46b
|
|
| MD5 |
beb707c3d6e4f3df30cccd588400218e
|
|
| BLAKE2b-256 |
770a5ecd03dcf8a315c59a37365d113485cbfb1d893c9f8daddc04338af60e4a
|