Skip to main content

Tools for working with 3D medical images and segmentations - registration, brain skull-stripping, etc.

Project description

mrid

mrid is a library for preprocessing of 3D images, particularly medical images.

It provide interfaces for many medical image processing tools such as SimpleElastix, HD-BET, SynthStrip, CTSeg. Note that those libraries are not bundled, installation instructions are included in all examples below.

Installation

Either run

pip install mrid-python

or

pip install git+https://github.com/inikishev/mrid

Registering images with SimpleITK-SimpleElastix

SimpleElastix is a robust tool for image registration which works really well out-of-the-box. It works on both Windows and Linux.

See this notebook for how to install and use it. image

Skullstripping MRI scans with HD-BET

HD-BET is a model that performs skullstripping of pre- and post-constrast T1, T2 and FALIR MRIs. It works on both Windows and Linux.

See this notebook for how to install and use it image

Skullstripping with SynthStrip

SynthStrip is a skull-stripping tool that works with many different image types and modalities, including MRI, DWI, CT, PET, etc.

See this notebook for how to install and use it image

Skullstripping and segmentation of CT images with CTseg

CTseg can skull-strip CT images and perform their segmentation, it also registers them to a common space (see its README). Note that it can be very slow for 512x512 series (can take few hours), but you can downsample to 256x256. If you only need to quickly skullstrip CT scans without warping them you can use SynthStrip.

TODO!!!

Example workflow - preprocessing MRIs to BraTS format

Many BraTS datasets are provided as skullstripped images in SRI24 space. See this notebook for how to process raw scans to this format.

image

(T1n image looks weird because that's just how it is in the zenodo dataset)

References

The MRIs for all images above are from https://zenodo.org/records/7213153.

Colin Vanden Bulcke. (2022). Open-Access DICOM MRI session (1.0) [Data set]. Zenodo. https://doi.org/10.5281/zenodo.7213153

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

mrid_python-0.1.5.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mrid_python-0.1.5-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

Details for the file mrid_python-0.1.5.tar.gz.

File metadata

  • Download URL: mrid_python-0.1.5.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mrid_python-0.1.5.tar.gz
Algorithm Hash digest
SHA256 433bebafb8ca508eb8ed3bce87ebeb2cf37d09b73307ac0c9d4116cd9b745ca1
MD5 96efa7a34f3469f86a01a86fcd11395e
BLAKE2b-256 cb2cf3ba3f5f9c1d7d64d0b3d5436b1abd01944e44544f86f38dca4789a6837c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mrid_python-0.1.5.tar.gz:

Publisher: python-publish.yml on inikishev/mrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mrid_python-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: mrid_python-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 44.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mrid_python-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0757f34c8b54424243a96da53fc36e0d324c8fc9d15972aee97e499eb2574264
MD5 f72e6160d187945fed6aad4ef9070674
BLAKE2b-256 4ef2801f6d796229ef80c290020a14448fe6d437e7c206d18ae2b3290d706d5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mrid_python-0.1.5-py3-none-any.whl:

Publisher: python-publish.yml on inikishev/mrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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