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 (sets/directories), NIfTI, and MRtrix Image Format, etc…
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 metadata reading methods that depend on third-party packages, also install the associated extras package:
$ pip3 install fileformats-medimage-extras
For most of the converter to work, you will also need to use the [extended] install option and install the Dcm2NiiX and MRtrix software 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
(on Mac you can use Homebrew instead of apt to install libopenjp2-7). MRtrix can be installed with miniconda:
$ conda install -c mrtrix3 mrtrix3
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
Hashes for fileformats_medimage-0.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f53e7576f3fa37717ee1848a570cf86a55d59d94daa0fec427acbe1ae7bbde0 |
|
MD5 | 07dd7174ea5c9f514d821db0ac528200 |
|
BLAKE2b-256 | 68581a14f94ada0c2b777dd6a29de762cb6dc4b5e634f3027841ab3d9936a624 |
Hashes for fileformats_medimage-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de179bdcddbf73251ddd7f5ab3fb0172847b0f8a5e0e9c7a92c472b31346b747 |
|
MD5 | b75c58a1a17e379921bd967d2f7be2be |
|
BLAKE2b-256 | d201ba32878a58e91e1635e191237f82f2a21a035f93840aee696f6376424eff |