ITK
ITK – Insight Toolkit
A broad open-source toolkit for medical image analysis: segmentation, registration and filters, with a Python API.
Basic information
| Name | ITK |
|---|---|
| Full name | ITK – Insight Toolkit |
| Category | Computer Vision & Image Processing |
| Developer | The Insight Software Consortium and Kitware |
| Release year | Not specified |
| Official website | docs.itk.org |
| GitHub repository | InsightSoftwareConsortium/ITK |
| Official documentation | Not specified |
| Package on PyPI | itk |
| License | Apache-2.0 (PyPI classifier) |
| Project status | Active Had a release in the last 12 months |
| Latest version | 11 November 2026 (version 5.4.8) |
| Programming language | C++, Python |
| Operating systems | Android, MacOS, POSIX, Unix, Windows (as declared by the package on PyPI) |
| Required Python version | >=3.8 |
| Difficulty level | Advanced |
Data last checked: 21 November 2026 — source: PyPI JSON API (2026-11-21)
Overview
ITK is a long-established C++ library with advanced algorithms for registration, segmentation and multidimensional filters, used by well-known medical tools. The itk package on PyPI provides an almost complete Python API.
More comprehensive and flexible than SimpleITK, but more complex to use.
When to choose it? Choose it for registration and advanced medical algorithms that SimpleITK does not provide.
Uses
Main uses
- Advanced image registration
- Multidimensional segmentation and algorithms
- Building medical analysis tools
Scientific fields
- Radiology
- Medical research
- Medical research
Suitable project types
- A registration pipeline for longitudinal MRI
- A registration pipeline for longitudinal MRI
Research applications
- Developing medical image analysis algorithms
- Developing medical image analysis algorithms
Technical features
A feature is shown as "Supported" only if it is documented in the library's official documentation; anything we have not verified is shown as "Not specified".
| CPU support | Supported |
|---|---|
| GPU support | Not supported |
| CUDA compatibility | Not supported |
| Distributed training or computing | Not supported |
| Automatic differentiation (Autodiff) | Not supported |
| Model deployment | Not applicable |
| Pre-trained models | Not applicable |
| Supported data types | Multidimensional images |
| Integration with other libraries | SimpleITK, MONAI, NumPy |
| Flexibility (editorial estimate) | Very high |
| Performance (editorial estimate) | High |
| Community (editorial estimate) | Specialised |
| Documentation quality (editorial estimate) | Official documentation |
Installation and running
pip install itkCompatibility: Python >=3.8 — according to the package data on PyPI, checked on 21 November 2026
Compatibility: Python >=3.8 — according to the package data on PyPI, checked on 21 November 2026
Installing inside a virtual environment (venv or conda) is recommended. If you need compatibility with a specific CUDA version or operating system, refer to the official documentation, because this information changes with every release.
Code examples
Examples marked "Run and tested" were actually run, with their output, test date and library versions recorded; the others need a GPU or model downloads, so they were not run in the test environment.
AdvancedA gradient magnitude filter in ITKRun and tested
Goal: Applying an ITK filter to a 3D image through its functional Python API.
import itk, numpy as np
arr = np.zeros((40, 40, 40), dtype=np.float32)
arr[10:30, 10:30, 10:30] = 100.0
image = itk.image_view_from_array(arr)
grad = itk.gradient_magnitude_recursive_gaussian_image_filter(image, sigma=1.0)
g = itk.array_from_image(grad)
print("Output shape:", g.shape)
print(f"Maximum value (at the edges): {g.max():.2f}")
print(f"Value at the centre of the cube: {g[20, 20, 20]:.4f}")
Code explanation
ITK provides thousands of filters and registration algorithms. Here we convert a NumPy array to an ITK image and apply a gradient magnitude filter with Gaussian smoothing, so high values appear only on the edges of the cube.
Output recorded during testing
Output shape: (40, 40, 40) Maximum value (at the edges): 36.57 Value at the centre of the cube: 0.0001
This example was actually run and tested on 21 November 2026 on a CPU — itk 5.4.8, numpy 2.5.5, python 3.13.18
Pros
- Comprehensive, long-established medical algorithms
Limitations
- A steep learning curve
- A complex API compared with SimpleITK
References and verification
- Package page on PyPI (source of the version, licence and release date) Checked directly
https://pypi.org/project/itk/
Checked on: 21 November 2026 — version checked: 5.4.8 — reviewed by: the DLArabic team
- Official website A link the package officially declares on PyPI
https://docs.itk.org/
Checked on: 21 November 2026 — reviewed by: the DLArabic team
- Official repository A link the package officially declares on PyPI
https://github.com/InsightSoftwareConsortium/ITK
Checked on: 21 November 2026 — reviewed by: the DLArabic team
- Package page on PyPI (source of the version, licence and release date) Checked directly
https://pypi.org/project/itk/
Checked on: 21 November 2026 — version checked: 5.4.8 — reviewed by: the DLArabic team
- Official website A link the package officially declares on PyPI
https://docs.itk.org/
Checked on: 21 November 2026 — reviewed by: the DLArabic team
- Official repository A link the package officially declares on PyPI
https://github.com/InsightSoftwareConsortium/ITK
Checked on: 21 November 2026 — reviewed by: the DLArabic team
History of verified versions
| Version | Release date | Checked on |
|---|---|---|
| 5.4.8 | 11 November 2026 | 21 November 2026 |
Page information last reviewed: 21 November 2026. The description was written originally for the encyclopedia and is not copied from the official websites.
