Skip to main content

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

Metadata

Release files for med-imagetools 2.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for med-imagetools 2.16.0
File Size Uploaded
med_imagetools-2.16.0.tar.gz 5.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for med-imagetools 2.16.0
File Interpreter ABI Platform
med_imagetools-2.16.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 MB

Release files / med_imagetools-2.16.0.tar.gz

Download URL med_imagetools-2.16.0.tar.gz
Size 5.2 MB
Tags Source
SHA-256 checksum
How to use checksums
16de2d2f684ba6fd33651355afc6310bf567d54bda674b94161e5f7f173955ac
BLAKE2b-256 checksum
How to use checksums
b7ddba2c2d496d117cb597f5811d8921e124d24c5c8454982fc8144268d713d6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / med_imagetools-2.16.0-py3-none-any.whl

Download URL med_imagetools-2.16.0-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a3411441c95b7c7fd1d03959529e10c32dba0aacc5d328929f40410942cae089
BLAKE2b-256 checksum
How to use checksums
f646e38a15232d468dbe949e615fac303d4015c59c490b11b5e3d4545f2028a1
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

2.16.0 This release

2 release files

2.15.0

2 release files

2.14.0

2 release files

2.13.1

2 release files

2.12.2

2 release files

2.12.1

2 release files

2.12.0

2 release files

2.11.2

2 release files

2.11.1

2 release files

2.11.0

2 release files

2.10.0

2 release files

2.9.2

2 release files

2.9.1

2 release files

2.9.0

2 release files

2.8.0

2 release files

2.7.0

2 release files

2.6.0

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

1.18.0

2 release files

1.17.1

2 release files

1.17.0

2 release files

1.16.0

2 release files

1.15.0

2 release files

1.14.0

2 release files

1.13.0

2 release files

1.12.0

2 release files

1.11.2

2 release files

1.11.1

2 release files

1.9.4

2 release files

1.9.3

2 release files

1.9.2

2 release files

1.9.1

2 release files

1.9.0

2 release files

1.8.2

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.8

2 release files

1.5.7

2 release files

1.5.4

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.6

3 release files

1.1.5

3 release files

1.1.3

3 release files

1.1.2

3 release files

1.1.1

3 release files

1.1.0

3 release files

1.0.5

3 release files

1.0.4

3 release files

1.0.3

3 release files

1.0.2

3 release files

1.0.1

3 release files

1.0.0

3 release files

0.4.4

3 release files

0.4.3

5 release files

0.4.2

5 release files

0.4.1

5 release files

0.4

5 release files

0.2.3

4 release files

0.2.2

5 release files

0.2.1

5 release files

0.2.0

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page