Skip to main content

Med-Imagetools: Transparent and Reproducible Medical Image Processing Pipelines in Python

Project description

Med-Imagetools: Transparent and Reproducible Medical Image Processing Pipelines in Python

CI/CD Status GitHub repo size GitHub contributors GitHub stars GitHub forks Documentation Status DOI Status

PyPI - Python Version GitHub Release PyPI - Version Docker Pulls Docker Size

PyPI - Format Downloads Codecov

Installation and Usage Documentation: https://bhklab.github.io/med-imagetools

Med-ImageTools core features

Med-Imagetools, a python package offers the perfect tool to transform messy medical dataset folders to deep learning ready format in few lines of code. It not only processes DICOMs consisting of different modalities (like CT, PET, RTDOSE and RTSTRUCTS), it also transforms them into deep learning ready subject based format taking the dependencies of these modalities into consideration.

cli

Introduction

A medical dataset, typically contains multiple different types of scans for a single patient in a single study. As seen in the figure below, the different scans containing DICOM of different modalities are interdependent on each other. For making effective machine learning models, one ought to take different modalities into account.

graph

Fig.1 - Different network topology for different studies of different patients

Med-Imagetools is a unique tool, which focuses on subject based Machine learning. It crawls the dataset and makes a network by connecting different modalities present in the dataset. Based on the user defined modalities, med-imagetools, queries the graph and process the queried raw DICOMS. The processed DICOMS are saved as nrrds, which med-imagetools converts to torchio subject dataset and eventually torch dataloader for ML pipeline.

Installing med-imagetools

pip install med-imagetools
imgtools --help
uvx --from 'med-imagetools[all]' imgtools --help

Repository Stars

Star History Chart

License

This project uses the following license: MIT License

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

med_imagetools-2.16.0.tar.gz (5.2 MB view details)

Uploaded Source

Built Distribution

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

med_imagetools-2.16.0-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file med_imagetools-2.16.0.tar.gz.

File metadata

  • Download URL: med_imagetools-2.16.0.tar.gz
  • Upload date:
  • Size: 5.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.0 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.9"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.6.3 9 Jun 2026","python":"3.12.9","system":{"name":"Linux","release":"6.17.0-35-generic"}} HTTPX2/2.5.0

File hashes

Hashes for med_imagetools-2.16.0.tar.gz
Algorithm Hash digest
SHA256 16de2d2f684ba6fd33651355afc6310bf567d54bda674b94161e5f7f173955ac
MD5 97befc059686ad03fa46504a6eac5838
BLAKE2b-256 b7ddba2c2d496d117cb597f5811d8921e124d24c5c8454982fc8144268d713d6

See more details on using hashes here.

File details

Details for the file med_imagetools-2.16.0-py3-none-any.whl.

File metadata

  • Download URL: med_imagetools-2.16.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.0 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.9"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.6.3 9 Jun 2026","python":"3.12.9","system":{"name":"Linux","release":"6.17.0-35-generic"}} HTTPX2/2.5.0

File hashes

Hashes for med_imagetools-2.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3411441c95b7c7fd1d03959529e10c32dba0aacc5d328929f40410942cae089
MD5 d89c458c160499eb56005c1f4537f39c
BLAKE2b-256 f646e38a15232d468dbe949e615fac303d4015c59c490b11b5e3d4545f2028a1

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