Skip to main content

Classes for representing various medical imaging file formats in Python classes for use in type hinting in data workflows

Project description

https://github.com/ArcanaFramework/fileformats-medimage/actions/workflows/ci-cd.yml/badge.svg https://codecov.io/gh/ArcanaFramework/fileformats-medimage/branch/main/graph/badge.svg?token=UIS0OGPST7 Supported Python versions Latest Version

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

Acknowledgements

The authors acknowledge the facilities and scientific and technical assistance of the National Imaging Facility, a National Collaborative Research Infrastructure Strategy (NCRIS) capability.

Creative Commons Attribution 4.0 International License

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

fileformats_medimage-0.11.3.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

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

fileformats_medimage-0.11.3-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file fileformats_medimage-0.11.3.tar.gz.

File metadata

  • Download URL: fileformats_medimage-0.11.3.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fileformats_medimage-0.11.3.tar.gz
Algorithm Hash digest
SHA256 ddb31a0be7ee526314be2b0c6b7ea52f16372ad2c1f661c80423cf6f7ee2fe97
MD5 c74dc46913e5dc45527cf5f7e353c7a6
BLAKE2b-256 7c23e3b6adfa2187002b2eb959de6cdbb538eea0daaec7e25d5606e8af9cf669

See more details on using hashes here.

File details

Details for the file fileformats_medimage-0.11.3-py3-none-any.whl.

File metadata

File hashes

Hashes for fileformats_medimage-0.11.3-py3-none-any.whl
Algorithm Hash digest
SHA256 df4802b459772fdf3c8c72938eb45f6f0da909d96157c26e817245b7e688dde0
MD5 4cb23d76c58477fad0689def290bad6d
BLAKE2b-256 fc5247b98351ca269f010a7a54471161815ae9da3ad9eba3021425242302fb33

See more details on using hashes here.

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