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 converters to work, you will need to 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
File details
Details for the file fileformats_medimage-0.8.2.tar.gz
.
File metadata
- Download URL: fileformats_medimage-0.8.2.tar.gz
- Upload date:
- Size: 30.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d3d24abff75d369c6d5430dc944c1254fdd7977498d1d4d4fc866b464baf3cc |
|
MD5 | f795f9edc8e26a4cc88886a1adeb0789 |
|
BLAKE2b-256 | d3358e3073be5dd463619a13e7d82c19be812623eb91ddad91d0fabede49bc47 |
File details
Details for the file fileformats_medimage-0.8.2-py3-none-any.whl
.
File metadata
- Download URL: fileformats_medimage-0.8.2-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63b33f3e7203e51fac830c527de1c118d60c5a061dc5bd3ae5f5fc992fc139bd |
|
MD5 | bdad05cb79e1cbf5074b908c2c9afb7b |
|
BLAKE2b-256 | b6e1c530f21d35ed4a8f3bd769d50e5a58e10dfb733f4deee4db9dad07534820 |