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.9.0.tar.gz
.
File metadata
- Download URL: fileformats_medimage-0.9.0.tar.gz
- Upload date:
- Size: 31.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1611e0fd73e39ec2112f885669afe18ad3f5e8b2bfbd5b4ec7bacf5a780b08f4 |
|
MD5 | f6c1176f2486681d544ae2a3d30c4f29 |
|
BLAKE2b-256 | 44bdbb5c10cc3c4f430123fe1ac3675d97cda366285a3af9affd782d87d96939 |
File details
Details for the file fileformats_medimage-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: fileformats_medimage-0.9.0-py3-none-any.whl
- Upload date:
- Size: 29.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21c18f4fd0b9cc0afb24c6e8c7b7a10d591aa024e4d49798709e2b3232febcd5 |
|
MD5 | 616e73fa5539da6377050ee30da57a54 |
|
BLAKE2b-256 | 1948dba175ec0d861141692fbb4d2dc9e2b5cad0df590cfc907004f064061f50 |