Metadata-Version: 2.4
Name: med-imagetools
Version: 2.14.0
Summary: Med-Imagetools: Transparent and Reproducible Medical Image Processing Pipelines in Python
Project-URL: homepage, https://github.com/bhklab/med-imagetools
Project-URL: documentation, https://bhklab.github.io/med-imagetools/
Project-URL: issues, https://github.com/bhklab/med-imagetools/issues
Author: Sejin Kim, Michal Kazmierski, Kevin Qu, Vishwesh Ramanathan, Jermiah Joseph
Author-email: Benjamin Haibe-Kains <benjamin.haibe.kains@utoronto.ca>
Maintainer-email: Benjamin Haibe-Kains <benjamin.haibe.kains@utoronto.ca>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Healthcare Industry
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS
Classifier: Operating System :: OS Independent
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Image Processing
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Python: <4,>=3.10
Requires-Dist: click<9,>=8.1
Requires-Dist: dill<1,>=0.3.8
Requires-Dist: dpath>=2.2.0
Requires-Dist: fasteners==0.19
Requires-Dist: highdicom
Requires-Dist: joblib<2,>=1.4.2
Requires-Dist: matplotlib<4,>=3.8.4
Requires-Dist: numpy<3
Requires-Dist: pandas<3
Requires-Dist: pydantic-settings<3,>=2.8.1
Requires-Dist: pydicom>=2.4.4
Requires-Dist: pyyaml<7,>=6.0
Requires-Dist: rich>=13.9.4
Requires-Dist: scikit-image<1,>=0.23.2
Requires-Dist: simpleitk<3,>=2.4.0
Requires-Dist: structlog<26,>=25.0
Requires-Dist: tqdm<5,>=4.66.4
Provides-Extra: all
Requires-Dist: aiohttp>=3.8.1; extra == 'all'
Requires-Dist: pygithub>=2.5.0; extra == 'all'
Requires-Dist: pyvis<0.4,>=0.3.2; extra == 'all'
Provides-Extra: datasets
Requires-Dist: aiohttp>=3.8.1; extra == 'datasets'
Requires-Dist: pygithub>=2.5.0; extra == 'datasets'
Provides-Extra: pyvis
Requires-Dist: pyvis<0.4,>=0.3.2; extra == 'pyvis'
Description-Content-Type: text/markdown

<div align="center">

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


[![CI/CD Status](https://github.com/bhklab/med-imagetools/actions/workflows/main.yml/badge.svg)](https://github.com/bhklab/med-imagetools/actions/workflows/main.yml)
![GitHub repo size](https://img.shields.io/github/repo-size/bhklab/med-imagetools)
![GitHub contributors](https://img.shields.io/github/contributors/bhklab/med-imagetools)
![GitHub stars](https://img.shields.io/github/stars/bhklab/med-imagetools?style=social)
![GitHub forks](https://img.shields.io/github/forks/bhklab/med-imagetools?style=social)
[![Documentation Status](https://readthedocs.org/projects/med-imagetools/badge/?version=documentation)](https://med-imagetools.readthedocs.io/en/documentation/?badge=documentation)
![DOI Status](https://zenodo.org/badge/243786996.svg)

[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/med-imagetools)](https://pypi.org/project/med-imagetools/)
[![GitHub Release](https://img.shields.io/github/v/release/bhklab/med-imagetools?include_prereleases&label=pre-release)](https://github.com/bhklab/med-imagetools/releases)
[![PyPI - Version](https://img.shields.io/pypi/v/med-imagetools?label=stable-pypi)](https://pypi.org/project/med-imagetools/)
[![Docker Pulls](https://img.shields.io/docker/pulls/bhklab/med-imagetools?label=dockerhub-pulls)](https://hub.docker.com/r/bhklab/med-imagetools)
[![Docker Size](https://img.shields.io/docker/image-size/bhklab/med-imagetools/latest?label=docker-size)](https://hub.docker.com/r/bhklab/med-imagetools/tags)

[![PyPI - Format](https://img.shields.io/pypi/format/med-imagetools)](https://pypi.org/project/med-imagetools/)
[![Downloads](https://static.pepy.tech/badge/med-imagetools)](https://pepy.tech/project/med-imagetools)
[![Codecov](https://img.shields.io/codecov/c/github/bhklab/med-imagetools?labelColor=violet&color=white)](https://codecov.io/gh/bhklab/med-imagetools)


**Installation and Usage Documentation**: [https://bhklab.github.io/med-imagetools](https://bhklab.github.io/med-imagetools)

</div>
<!--intro-start-->

## 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](assets/imgtools_cli.png)

## 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](assets/graph.png)

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

```console
pip install med-imagetools
imgtools --help
```

```console
uvx --from 'med-imagetools[all]' imgtools --help
```

## Repository Stars

[![Star History Chart](https://api.star-history.com/svg?repos=bhklab/med-imagetools&type=Date)](https://star-history.com/#bhklab/med-imagetools)

## License

This project uses the following license: [MIT License](https://github.com/bhklab/med-imagetools/blob/master/LICENSE)
<!--intro-end-->
