Introducing a new way to review your PRs.

Read the announcement

insightsoftwareconsortium / itk

Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.

View on GitHub

19 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

ITK Knowledge Base

ITK is a modular, C++ image-analysis toolkit centered on generic data objects, demand-driven processing pipelines, and CMake-configured modules. Its public API is organized under Modules/; build, dependency, and packaging logic lives in CMake/; language bindings and validation are maintained alongside their wrapped modules.

The main architectural layers are data representations and pipeline execution, reusable algorithm modules, format-specific I/O, registration and segmentation methods, and integration/build/test infrastructure. Image geometry and buffered/requested regions are critical runtime state; module metadata and CMake group definitions are critical build-time state.

flowchart TD
  Data[Core data model] --> Pipeline[Demand-driven pipeline]
  Image[Images, meshes, transforms] --> Pipeline
  Pipeline --> Filters[Filtering modules]
  Pipeline --> Registration[Registration modules]
  Pipeline --> Segmentation[Segmentation modules]
  IO[Image, mesh, transform I/O] --> Image
  Factories[I/O factories] --> IO
  Filters --> Output[Processed data]
  Registration --> Output
  Segmentation --> Output
  Modules[Module metadata and groups] --> Build[CMake build and distribution]
  Build --> Wrapping[Python wrapping]
  Build --> Tests[Testing and CI]
  Wrapping --> Python[Python package runtime]

Glossary

  • ProcessObject — pipeline node that owns inputs, outputs, requested-region propagation, and update behavior.
  • DataObject — pipeline data container with lifecycle and producer relationships.
  • ImageIORegion — an N-dimensional index-and-size region used to describe I/O subregions.
  • Module group — CMake-level grouping used to organize and enable related ITK modules.
  • Remote module — externally sourced module integrated through ITK’s module build machinery.

Invariants

  • Pipeline-compatible algorithms preserve ProcessObject/DataObject update semantics; evidence: Modules/Core/Common/include/**.
  • Image I/O regions are represented as dimensional index-and-size extents; evidence: Modules/…/itkImageIORegion.h.
  • I/O implementations are selected through registered factories rather than hard-coded format selection; evidence: Modules/…/*ImageIOFactory.h.
  • Module availability and dependency resolution are driven by CMake metadata and groups; evidence: CMake/ITKGroups.cmake and Modules/**/itk-module.cmake.
  • Wrapped-module changes require corresponding binding/test configuration; evidence: Modules/**/wrapping/** and Modules/**/wrapping/test/**.

Routing table