Classes for representing various medical imaging file formats in Python classes for use in type hinting in data workflows
Project description
This is an extension module to the fileformats package , which that adds support for commonly used medical imaging formats, such as DICOM, NIfTI, and MRtrix Image Format, etc…
For converters to work you will also need to install the Dcm2NiiX and MRtrix packages. There are various ways to do this, but on Ubuntu you can install Dcm2NiiX with:
$ sudo apt install libopenjp2-7 $ curl -fLO https://github.com/rordenlab/dcm2niix/releases/latest/download/dcm2niix_lnx.zip $ unzip dcm2niix_lnx.zip $ mv dcm2niix /usr/local/bin
and MRtrix with miniconda:
$ conda install -c mrtrix3 mrtrix3
Quick Installation
This extension can be installed for Python 3 using pip:
$ pip3 install fileformats-medimage
This will install the core package and any other dependencies to validate the file formats.
To use converters and load methods use the extended install option to install additional dependencies required for these methods:
$ pip3 install fileformats-medimage[extended]
License
This work is licensed under a Creative Commons Attribution 4.0 International License
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
File details
Details for the file fileformats_medimage-0.3.3.tar.gz
.
File metadata
- Download URL: fileformats_medimage-0.3.3.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4cd9b73af76432754463ba59546351139bc118feb4993d4abddb4b788aedd38 |
|
MD5 | 02f3e904f05e86fcf661899f69a34130 |
|
BLAKE2b-256 | b7987e0040eec427bd7862113ceccbc602a71b54fd45bc27cdd19c3538e171cf |
File details
Details for the file fileformats_medimage-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: fileformats_medimage-0.3.3-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df062ccf06ce71bd02c86e7bbb4cedac4583961286ec66c8dd56ea2cf8ce393b |
|
MD5 | bf87c476bf226df50a392f263a7a5d5a |
|
BLAKE2b-256 | 70e968178d89bfb51590e75e3a60cb3004dc0bd626e9170d4ba7310ff3e77486 |