Skip to main content

ITKIT: Feasible Medical Image Operation based on SimpleITK API

Project description

LOGO

ITKIT: Feasible Medical Image Operation based on SimpleITK API

Python >= 3.10 SimpleITK >= 2.5.0 License: MIT CI Status

PyPI: PyPI version Downloads

Docker Image: Docker Pulls

Readthedocs: Readthedocs

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

🛠️ 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

ITKIT GUI

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:


⭐ 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

itkit-4.0.0.tar.gz (261.0 kB view details)

Uploaded Source

Built Distribution

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

itkit-4.0.0-py3-none-any.whl (319.0 kB view details)

Uploaded Python 3

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

Hashes for itkit-4.0.0.tar.gz
Algorithm Hash digest
SHA256 1755c760eb95d09a8926bbb493713588f01e865347ead131f3e6b169ae3c7b29
MD5 a7c948e062559bf151354ee47eefb5e3
BLAKE2b-256 16d26bd95c28a0371b4337b7021dd29d3992fbe57acb44399495d1b66fdf36b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for itkit-4.0.0.tar.gz:

Publisher: publish-to-pypi.yml on MGAMZ/ITKIT

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for itkit-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6f24b92c1c386b42b314a1d8bedf4f3db7b60cb5ee3c0a0a9fcfd78b8c28b32
MD5 ef57b57c7189e3a13a0991f68a5fb61b
BLAKE2b-256 7e173c7c7b763a914f5df7ffd3da043d337c190b93e20b8073df37e382b1f83b

See more details on using hashes here.

Provenance

The following attestation bundles were made for itkit-4.0.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on MGAMZ/ITKIT

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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