Automatic segmentation of epilepsy neurosurgery resection cavity.
Project description
# RESSEG
Automatic segmentation of postoperative brain resection cavities.
## Installation
It’s recommended to use conda and install your desired PyTorch version before installing resseg. A 6-GB GPU is large enough to segment an image in the MNI space.
`shell conda create -n resseg python=3.8 ipython -y && conda activate resseg # recommended pip install resseg `
## Usage examples
### BITE
Example using an image from the [Brain Images of Tumors for Evaluation database (BITE)](http://nist.mni.mcgill.ca/?page_id=672).
`shell BITE=`resseg-download bite` resseg $BITE -o bite_seg.nii.gz tiohd --plot bite_seg.nii.gz `
### EPISURG
Example using an image from the [EPISURG dataset](https://doi.org/10.5522/04/9996158.v1). Segmentation works best when images are in the MNI space, so resseg includes a tool for this purpose (requires [ANTsPy](https://antspyx.readthedocs.io/en/latest/?badge=latest)).
`shell EPISURG=`resseg-download episurg` resseg-mni $EPISURG -t episurg_to_mni.tfm resseg $EPISURG -o episurg_seg.nii.gz -t episurg_to_mni.tfm tiohd --plot episurg_seg.nii.gz `
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
Hashes for resseg-0.3.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a67ad08be162d149c2b0f106899cddda9212d740d56c5957c731cdbb18fa1828 |
|
MD5 | 555a49d11885f5ff05356d6f5e085022 |
|
BLAKE2b-256 | d4c7b6fee412dc6f14e2c22f0f1f39af7fcd7230b94cd919dd8c433e585b7b1b |