ITK

ITK – Insight Toolkit

A broad open-source toolkit for medical image analysis: segmentation, registration and filters, with a Python API.

ActiveAdvancedv5.4.8Apache-2.0Computer Vision & Image Processing

Official documentationTry the examples

Basic information

NameITK
Full nameITK – Insight Toolkit
CategoryComputer Vision & Image Processing
DeveloperThe Insight Software Consortium and Kitware
Release yearNot specified
Official websitedocs.itk.org
GitHub repositoryInsightSoftwareConsortium/ITK
Official documentationNot specified
Package on PyPIitk
LicenseApache-2.0 (PyPI classifier)
Project statusActive Had a release in the last 12 months
Latest version11 November 2026 (version 5.4.8)
Programming languageC++, Python
Operating systemsAndroid, MacOS, POSIX, Unix, Windows (as declared by the package on PyPI)
Required Python version>=3.8
Difficulty levelAdvanced

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

Medical image analysisImage processing

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 supportSupported
GPU supportNot supported
CUDA compatibilityNot supported
Distributed training or computingNot supported
Automatic differentiation (Autodiff)Not supported
Model deploymentNot applicable
Pre-trained modelsNot applicable
Supported data typesMultidimensional images
Integration with other librariesSimpleITK, MONAI, NumPy
Flexibility (editorial estimate)Very high
Performance (editorial estimate)High
Community (editorial estimate)Specialised
Documentation quality (editorial estimate)Official documentation

Installation and running

Shell
pip install itk

Compatibility: 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.

Python — example.py
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.

Requirements

Shell
pip install itk numpy

How to run

Save the code in a file example.py then run it:

Shell
python example.py

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

Example page

All ITK examples in the Code Explorer

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

VersionRelease dateChecked on
5.4.811 November 202621 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.

Report information that needs updating