ITKIT: Feasible Medical Image Operation based on SimpleITK API
Project description
ITKIT: Feasible Medical Image Operation based on SimpleITK API
ITKIT is a comprehensive toolkit for medical image preprocessing and analysis, providing command-line tools, a GUI application, and deep learning framework integrations for CT and MRI image processing.
✨ Core Features
- 🔧 Preprocessing Tools: Check, resample, orient, patch, augment, and convert medical images
- 🖥️ GUI Application: User-friendly PyQt6 interface for all operations
- 🧠 Neural Networks: 16+ state-of-the-art segmentation models (SegFormer, MedNeXt, VMamba, etc.)
- 🔌 Framework Support: Integration with OpenMMLab, MONAI, TorchIO, and PyTorch Lightning
- 🏥 3D Slicer Extension: Native extension for running inference directly in 3D Slicer
- 📊 Dataset Conversion: Scripts for 12+ popular medical imaging datasets
- ⚡ High Performance: Multiprocessing support for faster batch processing
🚀 Quick Start
Installation
pip install itkit
# Optional: Install GUI support
pip install "itkit[gui]"
We also provide a docker image:
docker pull mgam1009/itkit:latest
[!NOTE] ITKIT experiences BC in v4. The previous version is
v3.6.0rc0.
Basic Usage
# Check dataset integrity
itk_check check /path/to/dataset --min-spacing 0.5 0.5 0.5
# Resample images to uniform spacing
itk_resample dataset /path/to/source /path/to/output --spacing 1.0 1.0 1.0 --mp
# Launch GUI application
itkit-app
📚 Documentation
Full documentation is available at docs
You can also find the docs on readthedocs.
Quick Links
- Installation Guide - Detailed installation instructions
- Quick Start Tutorial - Get started in 5 minutes
- Dataset Structure - Required dataset format
- Preprocessing Tools - Complete command reference
- Framework Integration - OpenMMLab, MONAI, TorchIO
- 3D Slicer Integration - Run inference in 3D Slicer
- Neural Network Models - Available segmentation models
- Supported Datasets - Dataset conversion scripts
- FAQ & Troubleshooting - Common issues and solutions
- Contributing Guide - How to contribute
🛠️ Command-Line Tools
ITKIT provides several preprocessing commands:
| Command | Description |
|---|---|
itk_check |
Validate dataset integrity (spacing, size, pairing) |
itk_resample |
Resample images to target spacing or size |
itk_orient |
Orient images to standard directions (LPI, RAS, etc.) |
itk_patch |
Extract patches for training |
itk_aug |
Data augmentation with random rotations |
itk_extract |
Extract specific classes from segmentation maps |
itk_convert |
Convert between formats (MHA, NIfTI, NRRD) and frameworks (MONAI, TorchIO) |
itkit-app |
Launch graphical user interface |
itk_slicer |
Start ITKIT inference server for 3D Slicer integration |
mmrun |
Run OpenMMLab experiments |
Use --help with any command for detailed usage information.
🖼️ GUI Application
Install GUI support and launch:
pip install "itkit[gui]"
itkit-app
# Adjust DPI if needed
QT_SCALE_FACTOR=2 itkit-app
📦 Optional Features
ITKIT provides optional dependency groups:
pip install "itkit[gui]" # GUI application (PyQt6)
pip install "itkit[advanced]" # Deep learning frameworks (OpenMMLab)
pip install "itkit[dev]" # Development tools (pytest, black, mypy)
pip install "itkit[pathology]" # Pathology image processing
pip install "itkit[onnx]" # Model deployment (ONNX, TensorRT)
📖 Citation
If you use ITKIT in your research, please cite:
@misc{ITKIT,
author = {Yiqin Zhang},
title = {ITKIT: Feasible Medical Image Operation based on SimpleITK API},
year = {2025},
url = {https://github.com/MGAMZ/ITKIT}
}
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for:
- Development setup
- Code style guidelines
- Testing requirements
- Pull request process
📄 License
ITKIT is released under the MIT License.
📧 Contact
For questions or suggestions, reach out at: 312065559@qq.com
🌟 Acknowledgments
ITKIT builds upon:
- SimpleITK - Medical image processing
- OpenMMLab - Deep learning framework
- MONAI - Medical imaging AI
- TorchIO - Medical image preprocessing
⭐ Star us on GitHub if you find ITKIT useful!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file itkit-4.0.0.tar.gz.
File metadata
- Download URL: itkit-4.0.0.tar.gz
- Upload date:
- Size: 261.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1755c760eb95d09a8926bbb493713588f01e865347ead131f3e6b169ae3c7b29
|
|
| MD5 |
a7c948e062559bf151354ee47eefb5e3
|
|
| BLAKE2b-256 |
16d26bd95c28a0371b4337b7021dd29d3992fbe57acb44399495d1b66fdf36b9
|
Provenance
The following attestation bundles were made for itkit-4.0.0.tar.gz:
Publisher:
publish-to-pypi.yml on MGAMZ/ITKIT
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
itkit-4.0.0.tar.gz -
Subject digest:
1755c760eb95d09a8926bbb493713588f01e865347ead131f3e6b169ae3c7b29 - Sigstore transparency entry: 1185778803
- Sigstore integration time:
-
Permalink:
MGAMZ/ITKIT@0f9e2515a686f595a1072bc7f5651e0968e1e87e -
Branch / Tag:
refs/tags/v4.0.0 - Owner: https://github.com/MGAMZ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@0f9e2515a686f595a1072bc7f5651e0968e1e87e -
Trigger Event:
release
-
Statement type:
File details
Details for the file itkit-4.0.0-py3-none-any.whl.
File metadata
- Download URL: itkit-4.0.0-py3-none-any.whl
- Upload date:
- Size: 319.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6f24b92c1c386b42b314a1d8bedf4f3db7b60cb5ee3c0a0a9fcfd78b8c28b32
|
|
| MD5 |
ef57b57c7189e3a13a0991f68a5fb61b
|
|
| BLAKE2b-256 |
7e173c7c7b763a914f5df7ffd3da043d337c190b93e20b8073df37e382b1f83b
|
Provenance
The following attestation bundles were made for itkit-4.0.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on MGAMZ/ITKIT
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
itkit-4.0.0-py3-none-any.whl -
Subject digest:
c6f24b92c1c386b42b314a1d8bedf4f3db7b60cb5ee3c0a0a9fcfd78b8c28b32 - Sigstore transparency entry: 1185778807
- Sigstore integration time:
-
Permalink:
MGAMZ/ITKIT@0f9e2515a686f595a1072bc7f5651e0968e1e87e -
Branch / Tag:
refs/tags/v4.0.0 - Owner: https://github.com/MGAMZ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@0f9e2515a686f595a1072bc7f5651e0968e1e87e -
Trigger Event:
release
-
Statement type: