mitk: Python bindings for MITK

mitk: Python bindings for MITK#

The mitk package exposes the data structures and core utilities of the Medical Imaging Interaction Toolkit (MITK) to Python. It ships as a self-contained wheel that bundles the compiled MITK runtime together with its native dependencies (ITK, VTK, CppMicroServices, DCMTK), so you can pip install it and start working with medical images without building MITK from source.

import mitk
import numpy as np

img = mitk.Image(np.zeros((64, 64, 64), dtype=np.float32), spacing=(1.0, 1.0, 2.5))
img.save("output.nrrd")

loaded = mitk.Image("output.nrrd")
print(loaded.shape, loaded.spacing, loaded.origin)

What this site covers#

This site documents the Python surface of MITK: classes, functions, NumPy interop, file I/O, geometry, properties. The wider MITK stack (C++ modules, plugins, the application framework, the BlueBerry plugin system) is documented separately at docs.mitk.org/latest/. Think of this site as the Python facade on that stack.

See also#