MCPcopy Create free account
hub / github.com/MITK/MITK / PYBIND11_MODULE

Function PYBIND11_MODULE

Wrapping/Python/mitk/Module.cpp:35–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33void InitDicom(py::module_&);
34
35PYBIND11_MODULE(mitk, m)
36{
37 m.doc() = R"(Python bindings for the Medical Imaging Interaction Toolkit (MITK).
38
39The ``mitk`` package exposes the data structures and core utilities of MITK
40to Python. The central type is :py:class:`Image`, with full NumPy interop,
41file I/O via :py:class:`IOUtil`, geometry classes (:py:class:`BaseGeometry`,
42:py:class:`TimeGeometry`, ...), points and vectors, typed properties, and
43:py:class:`MultiLabelSegmentation` for label-set data.
44
45Full user documentation, including a Getting Started guide and an
46auto-generated API reference, lives at https://mitk-python.readthedocs.io/en/2026.06/.
47
48The wider MITK C++ stack is documented at https://docs.mitk.org/2026.06/.
49)";
50
51 py::module_ os = py::module_::import("os");
52 os.attr("environ")["PYMITK"] = "1";
53
54 InitCppMicroServices(m);
55 InitException(m);
56 InitPoints(m);
57 InitVectors(m);
58 InitGeometries(m);
59 InitColor(m);
60 InitPixelType(m);
61 InitImage(m);
62 InitIOUtil(m);
63 InitProperty(m);
64 InitPropertyList(m);
65 InitTemporoSpatialStringProperty(m);
66 InitPropertyKeyPath(m);
67 InitDICOMTagPath(m);
68 InitMultiLabelSegmentation(m);
69 // mitk.relations and mitk.dicom are initialized after the data classes
70 // they reference so the type registrations they depend on exist.
71 InitRelations(m);
72 InitDicom(m);
73}

Callers

nothing calls this directly

Calls 15

InitCppMicroServicesFunction · 0.85
InitExceptionFunction · 0.85
InitPointsFunction · 0.85
InitVectorsFunction · 0.85
InitGeometriesFunction · 0.85
InitColorFunction · 0.85
InitPixelTypeFunction · 0.85
InitImageFunction · 0.85
InitIOUtilFunction · 0.85
InitPropertyFunction · 0.85
InitPropertyListFunction · 0.85

Tested by

no test coverage detected