Skip to main content

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.

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).

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. Segmentation works best when images are in the MNI space, so resseg includes a tool for this purpose (requires ANTsPy).

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resseg-0.3.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

resseg-0.3.3-py2.py3-none-any.whl (9.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file resseg-0.3.3.tar.gz.

File metadata

  • Download URL: resseg-0.3.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.1

File hashes

Hashes for resseg-0.3.3.tar.gz
Algorithm Hash digest
SHA256 e1aa2323d3a8d06cceb49f6f2367e85720d7417dce9eb8c75d6d37db6b69d3f4
MD5 c61b2e0cd6b0ca78cd253e1902812c0c
BLAKE2b-256 c006eff74b2012cc63388e2e757bb95b97e367f5b93d515615aceeb268b16883

See more details on using hashes here.

File details

Details for the file resseg-0.3.3-py2.py3-none-any.whl.

File metadata

  • Download URL: resseg-0.3.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.1

File hashes

Hashes for resseg-0.3.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 22ea5acfa3410287e74f60aa81e7d954b16c074a0eac5aff9e2899dd4ccdb539
MD5 f717506d1fec667d4d73fa77e06f33b1
BLAKE2b-256 279d458f7904482d99cd1cc26e465f8fd164a5278b9bd0f663b3bc6c52d48c75

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page