| 33 | void InitDicom(py::module_&); |
| 34 | |
| 35 | PYBIND11_MODULE(mitk, m) |
| 36 | { |
| 37 | m.doc() = R"(Python bindings for the Medical Imaging Interaction Toolkit (MITK). |
| 38 | |
| 39 | The ``mitk`` package exposes the data structures and core utilities of MITK |
| 40 | to Python. The central type is :py:class:`Image`, with full NumPy interop, |
| 41 | file 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 | |
| 45 | Full user documentation, including a Getting Started guide and an |
| 46 | auto-generated API reference, lives at https://mitk-python.readthedocs.io/en/2026.06/. |
| 47 | |
| 48 | The 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 | } |
nothing calls this directly
no test coverage detected