Language and library bridges
ITK uses bridge layers to let its image data and processing pipelines work with Python and with data systems such as NumPy, VTK, OpenCV, and VXL. These layers keep ITK's image and pipeline model useful while allowing an application to use the language, numeric array, display, or video tools that best fit its task. Read image data representation for the ITK image contract, Python wrapping for the Python binding API, and module build and distribution for how optional bridge modules become available to applications.
Interoperability model
Bridge boundaries
A bridge is an integration boundary between the ITK data model and an external ecosystem. It translates the data form or pipeline contract at that boundary, while the ITK side continues to use typed images, image geometry, and pipeline updates. Many bridges are separate modules, so an application can choose only the external systems that it needs. Modules/Bridge/VTK/itk-module.cmake#L1-L21 Modules/Bridge/NumPy/itk-module.cmake#L1-L21 Modules/…/CMakeLists.txt• L3-8 Modules/Video/BridgeOpenCV/itk-module.cmake#L1-L17
The main bridge choices are based on the work that follows the handoff:
- Use Python wrapping when the application needs ITK algorithms from Python.
- Use NumPy or other Python array support when the application needs array-based processing or shared image buffers.
- Use VTK bridges when ITK analysis must connect to VTK visualization or a VTK pipeline.
- Use OpenCV or VXL bridges when ITK video work must use those libraries for capture, codecs, or video files.
References: Modules/…/itk-module.cmake• L1-21 Modules/…/itk-module.cmake• L1-21 Modules/…/CMakeLists.txt• L3-8 Modules/…/itk-module.cmake• L1-17
Cross-ecosystem flow
The bridge flow keeps the ITK image or pipeline as the analysis center and uses an external representation only where the application needs it.
flowchart LR
E[External language or library] --> B[Bridge boundary]
B --> I[ITK image or pipeline]
I --> A[ITK algorithm]
A --> B
B --> R[External result or next pipeline stage]
The handoff can share memory or make a copy. It can also carry image geometry such as size, spacing, origin, and direction. The choice depends on the external data contract, so callers must treat memory lifetime and coordinate order as part of the handoff. Modules/Bridge/VTK/itk-module.cmake#L3-L13 Modules/Bridge/NumPy/README.rst#L72-L82 Wrapping/…/extras.py• L686-786
References: Modules/…/itk-module.cmake• L3-13 Modules/…/README.rst• L72-82 Wrapping/…/extras.py• L686-786
Python language access
Generated Python bindings
Python wrapping is the language bridge that exposes selected ITK C++ types and algorithms through the itk Python package. Python is the supported wrapped language, and the wrapping option requires dynamic loading so the package can load its generated module libraries. Wrapping/WrappingOptions.cmake#L1-L14 Wrapping/TypedefMacros.cmake#L103-L129
The binding layer lets Python code build and run ITK pipelines without changing the core ITK data model. It also adds Python-oriented access around the wrapped types, such as functional filter calls and conversions to common Python data forms. Read Python wrapping for the generated binding lifecycle and its Python-facing API.
References: Wrapping/WrappingOptions.cmake• L1-14 Wrapping/TypedefMacros.cmake• L103-129 Wrapping/TypedefMacros.cmake• L1485-1499
Binding generation flow
The binding generator turns the selected C++ types into a set of Python-facing module interfaces. It first describes the selected types and their dependencies, then reads compiler-level type information, creates SWIG input, and records the Python class information needed for editor type hints.
The wrapping build discovers enabled modules with wrapping definitions and can process a module with its required wrapped dependencies. When the build wraps a module, it processes that module's submodules in a stable order. The generated interfaces and type indexes feed the Python extension build. A later pass combines the per-class records into package stub files such as __init__.pyi and _proxies.pyi, so runtime access and editor help use the same wrapped surface. Wrapping/CMakeLists.txt• L157-185 Wrapping/CMakeLists.txt• L198-267
This flow also creates the functional snake-case entry points used by Python filters. The generated functions accept Python-friendly inputs and return values while the wrapped ITK process object remains the execution center.
References: Wrapping/…/itk_auto_load_submodules.cmake• L318-386 Wrapping/…/igenerator.py• L1860-1870 Wrapping/…/igenerator.py• L1904-1927 Wrapping/CMakeLists.txt• L157-185 Wrapping/CMakeLists.txt• L198-267 Wrapping/…/pyi_generator.py• L432-497 Wrapping/…/pyi_generator.py• L612-627
Python array inputs
The Python layer can accept NumPy array-like values as image inputs and return array-like values from image outputs. It can also connect optional xarray and PyTorch values to ITK images, which lets a Python application move between ITK algorithms and array or tensor workflows without rewriting the algorithm stage. Wrapping/…/helpers.py• L93-100 Wrapping/…/helpers.py• L109-197
This support keeps the input form visible through the pipeline. An array input normally produces an array output, while an ITK image input remains an ITK image input. Multi-component data needs a consistent channel order when it crosses between ecosystems. Wrapping/…/helpers.py• L121-151 Wrapping/…/helpers.py• L158-195
References: Wrapping/…/helpers.py• L93-100 Wrapping/…/helpers.py• L109-197
Numeric data interchange
NumPy image buffers
The NumPy bridge connects ITK image buffers to Python arrays. It supports both safe copies and views that expose the same pixel memory, so Python array operations can either isolate their changes or work directly on ITK data. Modules/…/itkPyBuffer.h• L35-45 Modules/Bridge/NumPy/README.rst#L22-L50
The bridge is an optional Python-facing module that supports both in-tree and external module builds. Its build target receives the Python include paths, while the runtime exchange relies on the Python buffer protocol, so NumPy is not required at build time. Modules/…/CMakeLists.txt• L3-8 Modules/Bridge/NumPy/README.rst#L11-L20
The wrapping definition generates the image-buffer interface for the configured scalar, tensor, color, vector, and vector-image image types. It also adds the VNL vector interface to the same generated Python bridge. This keeps Python access aligned with the image and numeric types selected by the wrapping configuration. Modules/Bridge/NumPy/wrapping/itkPyBuffer.wrap#L6-L20 Modules/Bridge/NumPy/wrapping/itkPyBuffer.wrap#L33-L120 Modules/Bridge/NumPy/wrapping/itkPyBuffer.wrap#L123-L146
The bridge maps NumPy data types to ITK pixel types and accounts for the different index and array shape conventions. A view avoids a copy but ties the array to the lifetime of its source image. Repeated view creation is also checked for retained memory, both when the source array is reused and when a new source array is created each time. Read Python wrapping for the wider Python interface and use this bridge when the key contract is image-buffer exchange. Wrapping/…/extras.py• L266-289 Wrapping/…/extras.py• L317-358 Wrapping/…/extras.py• L424-484 Modules/…/itkPyBufferMemoryLeakTest.py• L24-66
References: Modules/…/itkPyBuffer.h• L35-45 Modules/…/CMakeLists.txt• L3-8 Modules/…/itkPyBuffer.wrap• L6-20 Modules/…/itkPyBuffer.wrap• L33-120 Modules/…/itkPyBuffer.wrap• L123-146 Modules/…/README.rst• L11-20 Modules/…/README.rst• L22-50 Modules/…/README.rst• L72-82 Wrapping/…/extras.py• L266-289 Wrapping/…/extras.py• L317-358 Modules/…/itkPyBufferMemoryLeakTest.py• L24-66
VNL numeric buffers
The same Python data boundary covers VNL vectors and matrices, which are ITK's numeric structures used by parts of its algorithms. Python code can view VNL data as arrays or create VNL values from arrays, so numeric work can move between ITK algorithms and Python tools. Modules/…/itkPyVnl.h• L33-43 Modules/…/CMakeLists.txt• L23-25 Wrapping/…/extras.py• L653-683
This path is separate from image exchange because a vector or matrix has no image geometry. It preserves the numeric shape and value type needed by the receiving operation. The bundled VXL numeric layer also validates core containers and numerical algorithms, while tests for removed legacy solver APIs are left out when those APIs are disabled. Modules/…/itkPyVnl.h• L45-79 Modules/…/CMakeLists.txt• L3-45 Modules/…/CMakeLists.txt• L3-59
References: Modules/…/itkPyVnl.h• L33-43 Modules/…/itkPyVnl.h• L45-79 Modules/…/CMakeLists.txt• L23-25 Wrapping/…/extras.py• L653-683 Modules/…/CMakeLists.txt• L3-45 Modules/…/CMakeLists.txt• L3-59
Vector container arrays
The NumPy bridge also connects ITK VectorContainer values to Python arrays. A caller can choose a shared view for direct access to container values or a copy for an independent array. It can also create a new VectorContainer from a one-dimensional array. Fixed-size elements such as points retain their element shape in the array representation. Modules/…/itkPyVectorContainer.h• L32-65 Modules/Bridge/NumPy/wrapping/PyVectorContainerBuffer.i.in#L4-L60 Wrapping/…/extras.py• L487-564
This exchange supports point, cell, and other collection data that travels with mesh and point-set workflows. The view follows the source container's storage, while the copy separates later changes on either side. Empty containers keep the expected element shape and data type, including the two-dimensional shape used by point elements. Modules/…/itkPyVectorContainer.h• L32-65 Modules/Bridge/NumPy/include/itkPyVectorContainer.hxx#L27-L82 Modules/Bridge/NumPy/wrapping/PyVectorContainerBuffer.i.in#L14-L43 Wrapping/…/extras.py• L487-564 Modules/…/itkPyVectorContainerTest.py• L26-123
References: Modules/…/itkPyVectorContainer.h• L32-65 Modules/…/itkPyVectorContainer.hxx• L27-82 Modules/…/PyVectorContainerBuffer.i.in• L4-60 Wrapping/…/extras.py• L487-564 Modules/…/itkPyVectorContainerTest.py• L26-123
VTK data and pipelines
Image pipeline exchange
The VTK bridge connects an ITK image pipeline to a VTK image pipeline. An ITK-to-VTK adaptor accepts an ITK image and produces vtkImageData; a VTK-to-ITK adaptor accepts VTK image data and produces an ITK image. The lower-level VTKImageExport path connects the end of an ITK image pipeline to VTK's image import path and carries the image extent, geometry, component information, and pixel buffer across that boundary. The bridge connects pipeline updates as well as data, so a downstream update can request work from the upstream pipeline. The adaptors preserve this connection across supported VTK callback interfaces. Modules/…/itkImageToVTKImageFilter.h• L28-45 Modules/Bridge/VtkGlue/include/itkImageToVTKImageFilter.hxx#L26-L56 Modules/…/itkVTKImageToImageFilter.h• L34-48 Modules/Bridge/VtkGlue/include/itkVTKImageToImageFilter.hxx#L28-L56 Modules/…/itkVTKImageImport.h• L43-55 Modules/…/itkVTKImageExport.h• L26-49
The Python interface offers matching image conversion helpers. These conversions carry image size and basic physical metadata, and they map multi-component images to VTK scalar, vector, or tensor data where the VTK image model supports it. Wrapping/…/extras.py• L686-740 Wrapping/…/extras.py• L743-786
This bridge is useful when ITK supplies image analysis and VTK supplies display, interaction, or another VTK processing stage. Read image data representation for the image geometry that must survive the handoff and video processing when the exchange is part of a video workflow rather than a still-image or visualization workflow.
References: Modules/…/itkImageToVTKImageFilter.h• L28-45 Modules/…/itkImageToVTKImageFilter.hxx• L26-56 Modules/…/itkVTKImageToImageFilter.h• L34-48 Modules/…/itkVTKImageToImageFilter.hxx• L28-56 Modules/…/itkVTKImageImport.h• L43-55 Modules/…/itkVTKImageExport.h• L26-49 Wrapping/…/extras.py• L686-786
Python VTK objects
The VtkGlue Python binding lets a Python pipeline pass wrapped VTK image, import, export, and polygon-data objects across the ITK boundary. This direct object path complements the array helpers because it keeps the VTK pipeline object available for the next VTK stage instead of reducing the handoff to a NumPy buffer. Modules/Bridge/VtkGlue/wrapping/VtkGlue.i#L50-L190 Modules/…/CMakeLists.txt• L1-29
The binding uses Python's stable limited interface and checks that incoming values are real instances of the expected VTK type. It returns VTK objects that keep their identity and lifetime across the handoff. On Windows, the generated Python setup registers the VTK core DLL directory before VTK modules are imported, which lets the wrapped bridge load the matching VTK libraries. VtkGlue requires VTK 9.1 or newer. VTK 9.4 or newer is recommended for current fixes. When ITK Python wrapping is enabled, VTK must provide Python wrapping and must not be a static build because static VTK Python wrapping collapses into a form that ITK cannot import. If ITK uses shared libraries and VTK uses static libraries with rendering enabled, configuration warns because separate VTK copies can lose object-factory registrations. The VtkGlue checks cover object exchange, image dimensions, pixel values, physical metadata, type rejection, wrapper encoding changes, and the Windows import setup. Modules/Bridge/VtkGlue/itk-module-init.cmake#L5-L36 Modules/Bridge/VtkGlue/itk-module-init.cmake#L39-L80 Modules/Bridge/VtkGlue/itk-module-init.cmake#L82-L123 Modules/…/CMakeLists.txt• L1-29 Modules/…/CMakeLists.txt• L1-37 Modules/…/VtkGlueABI3EncodingTest.py• L19-102 Modules/…/VtkGlueRoundTripTest.py• L19-111 Modules/…/VtkGlueTypemapCoverageTest.py• L18-27
The round-trip check uses the VtkGlue filters themselves. It confirms that an ITK image becomes a real vtkImageData object and returns with its pixels and physical geometry intact. It also confirms that the input boundary rejects non-VTK objects and forged pointer-like values instead of treating them as native VTK objects. Modules/…/VtkGlueRoundTripTest.py• L19-25 Modules/…/VtkGlueRoundTripTest.py• L43-111
The encoding canary protects the narrow ABI contract used by the Python object handoff. It checks the VTK __this__ pointer form and the address form used to rebuild wrapped objects, so a VTK wrapper change fails with a focused compatibility error. Modules/…/VtkGlueABI3EncodingTest.py• L19-33 Modules/…/VtkGlueABI3EncodingTest.py• L55-102
References: Modules/…/VtkGlue.i• L50-190 Modules/…/CMakeLists.txt• L1-29 Modules/…/itk-module-init.cmake• L5-36 Modules/…/itk-module-init.cmake• L39-80 Modules/…/itk-module-init.cmake• L82-123 Modules/…/CMakeLists.txt• L1-37 Modules/…/VtkGlueABI3EncodingTest.py• L19-102 Modules/…/VtkGlueRoundTripTest.py• L19-111 Modules/…/VtkGlueTypemapCoverageTest.py• L18-27
Video library access
OpenCV image and video exchange
The OpenCV bridge connects ITK image data and video operations to OpenCV. Its image bridge handles cv::Mat and legacy IplImage values in both directions, while its video I/O layer supports files and camera input through ITK's common video interface. Modules/…/itkOpenCVImageBridge.h• L42-56 Modules/…/itkOpenCVVideoIO.h• L30-37 Modules/…/itkOpenCVVideoIO.h• L62-94
The image handoff can convert supported channel layouts and pixel types, but it is a data conversion boundary rather than a general OpenCV view of every ITK image. Basic ITK points, indices, sizes, matrices, and vectors also have matching OpenCV forms. Modules/…/itkOpenCVImageBridge.h• L47-55 Modules/…/itkOpenCVImageBridge.h• L103-139 Modules/…/itkOpenCVBasicTypeBridge.h• L37-64
Read video processing for the role of these adapters in frame streams, camera input, and video output.
References: Modules/…/itkOpenCVImageBridge.h• L42-56 Modules/…/itkOpenCVImageBridge.h• L103-139 Modules/…/itkOpenCVVideoIO.h• L30-37 Modules/…/itkOpenCVVideoIO.h• L62-94 Modules/…/itkOpenCVBasicTypeBridge.h• L37-64
VXL video exchange
The VXL bridge gives ITK video I/O a second external video backend. VXLVideoIO uses VXL video services to read and write files and to read from cameras while exposing the common ITK video interface. Modules/…/itkVXLVideoIO.h• L34-42 Modules/…/itkVXLVideoIO.h• L66-91 Modules/…/itkVXLVideoIO.h• L122-145
The OpenCV and VXL modules serve the same ITK video abstraction but depend on different external libraries. Their factory classes make the matching video I/O type available to ITK's object-factory system when the selected bridge is enabled. Modules/…/itkOpenCVVideoIOFactory.h• L27-33 Modules/…/itkOpenCVVideoIOFactory.h• L57-64 Modules/…/itkVXLVideoIOFactory.h• L26-32 Modules/…/itkVXLVideoIOFactory.h• L56-63
VXL-backed paths follow the selected VXL snapshot maintained by ITK. This keeps the numeric and video bridges tied to a known upstream state instead of an uncontrolled external revision. Modules/…/UpdateFromUpstream.sh• L7-26
References: Modules/…/itkVXLVideoIO.h• L34-42 Modules/…/itkVXLVideoIO.h• L66-91 Modules/…/itkVXLVideoIO.h• L122-145 Modules/…/itkOpenCVVideoIOFactory.h• L27-33 Modules/…/itkVXLVideoIOFactory.h• L26-32 Modules/…/UpdateFromUpstream.sh• L7-26
Change checklist
When these files or sections are changed, remember to consider these:
- Keep Python array input and output forms aligned with channel-order rules for scalar and multi-component images.
- Keep NumPy view lifetime rules aligned with image ownership and with any new buffer protocol support.
- Keep repeated
PyBufferview creation free of retained allocations for both reused and newly created source arrays. - Keep NumPy
VectorContainerviews and copies aligned with the ownership and mutation contract used by mesh and point-set data. - Keep image shape, index order, and physical metadata consistent across NumPy, VTK, and OpenCV conversions.
- Keep VTK import and export adaptors aligned so pipeline update requests reach the external pipeline in both directions.
- Keep VTK export support aligned with the dimensions, scalar types, and component layouts accepted by the VTK image boundary.
- Keep OpenCV and VXL video factories aligned with the common video I/O selection path when a backend changes.
- Keep bridge modules opt-in when an external library adds a required dependency or changes its supported data types.
- Keep the NumPy module's in-tree and external build paths aligned with Python include paths and module enablement.
- Keep the Python wrapping option aligned with dynamic loading and with the generated module loader.
- Keep SWIG, CastXML, and compiler settings aligned so generated interfaces describe the same C++ types that the wrapper libraries build.
- Keep submodule order and dependency indexes aligned with generated SWIG interfaces and Python type-hint files.
- Keep generated snake-case functions and type hints aligned with the wrapped class and method surface.
- Keep the NumPy PyBuffer type lists aligned with the image types selected for Python wrapping.
- Keep VTK's Python wrapping and library type aligned with the ITK Python wrapping option. A static VTK build is not valid for the VtkGlue Python path.
- Keep the VtkGlue Python object contract aligned with VTK wrapper type checks, object identity, lifetime, and supported wrapper encodings.
- Keep the Windows VTK DLL-directory setup aligned with the VTK configuration used by the generated Python module.
- Keep the VtkGlue round-trip and ABI encoding checks aligned with the VTK object handoff and its type-rejection boundary.
- Keep the VXL snapshot and its numeric and video bridge expectations aligned when updating the bundled upstream source.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A NumPy view outlives its source ITK image or vector container. | The array can read invalid memory or corrupt process state. | Keep the source object alive for the full lifetime of every view. |
| Repeated PyBuffer view creation retains allocations. | A long-running Python process uses more memory than the conversion work requires. | Run the memory-use check for reused and newly created NumPy sources. |
| A caller treats ITK index order as NumPy array order without checking the bridge contract. | Pixels appear transposed or the image has the wrong size. | Apply the documented axis convention and use an explicit copy when a different order is required. |
| A multi-component image crosses a bridge with the wrong channel layout. | Colors or vector components are swapped. | Confirm whether the receiving library uses interleaved or contiguous channels. |
| An OpenCV conversion requests an unsupported channel or pixel-type change. | The bridge rejects the conversion instead of producing a valid image. | Use supported scalar or color layouts and convert the data before the handoff when needed. |
| A VTK pipeline is connected without preserving image metadata or update flow. | The result has wrong spatial meaning or the downstream stage sees stale data. | Use the ITK VTK adaptors so metadata and update callbacks remain connected across supported VTK API versions. |
An ITK image outside VTK's supported dimensions or scalar types reaches VTKImageExport. | The VTK image boundary cannot represent the image correctly. | Restrict exports to one, two, or three dimensions and to the supported VTK scalar types. |
| ITK Python wrapping is enabled with a VTK build that lacks Python wrapping. | VtkGlue configuration stops because its Python object bridge cannot use the VTK wrappers. | Use a VTK 9.1-or-newer build with Python wrapping enabled, or disable the VtkGlue Python path. |
| ITK Python wrapping is enabled with a static VTK build. | VtkGlue configuration stops because the static VTK Python wrapper cannot be imported by ITK. | Use a shared VTK build, or disable the VtkGlue Python path. |
| A shared ITK build uses a static VTK rendering build. | VTK object-factory registrations can be split across library copies and rendering objects can fail to create. | Use a shared VTK with shared ITK, or build both sides with compatible static-library settings. |
| A VTK Python wrapper changes its object encoding or wrapper type behavior. | VtkGlue cannot reconstruct or safely accept the VTK object. | Keep the ABI encoding canary and round-trip and typemap coverage checks passing before changing the supported VTK range. |
| Python passes an object that is not the expected VTK type to a VtkGlue input. | The handoff is rejected instead of producing an unsafe native-pointer cast. | Pass an instance of the required VTK class and let the bridge validate the type. |
| Windows cannot load the VTK DLL directory used by the generated Python module. | Importing the VTK-backed Python bridge fails before object exchange starts. | Use the VTK configuration selected by the build and let the generated module register its VTK core DLL directory before VTK imports. |
| A video bridge is enabled without its external backend or factory. | ITK cannot select the requested video reader or writer. | Enable the matching bridge module and register or load its factory before video I/O. |
| A caller uses a vector-container view where an independent snapshot is required. | Later changes to the container also change the NumPy array. | Use the copy conversion for data that must not share storage. |
| A caller passes a multi-dimensional array to vector-container creation. | The conversion rejects the input instead of creating a container. | Pass a one-dimensional array to the creation path. |
| Wrapping is enabled without dynamic loading or with an unsupported SWIG tool. | Configuration fails before the Python bridge can be built. | Enable dynamic loading and use a supported SWIG version or the project's checked tool. |
| Generated type indexes do not match the selected wrapper modules. | SWIG interfaces or Python type hints are incomplete or stale. | Regenerate the interfaces from the current module dependency and submodule lists. |
Key files
| File | Why to read it |
|---|---|
Wrapping/WrappingOptions.cmake | Shows the project-level switch that enables Python language access and its build prerequisites. |
| Wrapping/CMakeLists.txt | Shows how enabled modules become wrapper targets, how package type hints are generated, and how wrapping development files are installed. |
Wrapping/TypedefMacros.cmake | Shows how selected C++ classes and template instances become wrapper inputs. |
Wrapping/macro_files/itk_auto_load_submodules.cmake | Shows how module submodules are ordered and connected to CastXML and SWIG generation. |
| Wrapping/…/CMakeLists.txt | Shows how the SWIG tool is selected and checked for wrapper generation. |
| Wrapping/…/igenerator.py | Shows how compiler type information becomes SWIG interfaces, Python-friendly filter calls, and class records. |
| Wrapping/…/pyi_generator.py | Shows how class records are combined into Python editor type hints. |
| Wrapping/…/__init__.py | Shows the common Python entry point and its lazy access to wrapped ITK modules. |
| Wrapping/…/helpers.py | Shows how Python array-like, xarray, and tensor values enter and leave ITK image filters. |
| Modules/…/CMakeLists.txt | Shows the Python include path supplied to the optional NumPy bridge target. |
Modules/Bridge/NumPy/wrapping/itkPyBuffer.wrap | Shows which configured image and VNL types receive the generated Python buffer interface. |
Modules/Bridge/NumPy/README.rst | Gives the clearest overview of NumPy image and VNL buffer exchange, including view lifetime. |
| Modules/…/itkPyBuffer.h | Defines the image-buffer boundary between ITK and Python arrays. |
| Modules/…/itkPyVnl.h | Defines the numeric buffer boundary for VNL vectors and matrices. |
| Modules/…/itkPyVectorContainer.h | Defines the Python array boundary for ITK vector containers. |
Modules/Bridge/NumPy/wrapping/PyVectorContainerBuffer.i.in | Defines the Python view, copy, empty-container, and array-to-container behavior for vector containers. |
| Modules/…/itkPyBufferMemoryLeakTest.py | Checks that repeated image-view conversion does not retain unexpected memory. |
| Modules/…/itkVTKImageImport.h | Defines VTK-to-ITK pipeline connection and update propagation. |
| Modules/…/itkVTKImageExport.h | Defines the ITK-to-VTK image export boundary, including VTK image metadata and supported image forms. |
| Modules/…/itkImageToVTKImageFilter.h | Defines the ITK-to-VTK image adaptor used in a combined pipeline. |
Modules/Bridge/VtkGlue/include/itkVTKImageToImageFilter.hxx | Shows the VTK-to-ITK adaptor's pipeline callback connection across VTK versions. |
Modules/Bridge/VtkGlue/itk-module-init.cmake | Defines the VTK version and Python, library, and rendering build conditions for the VtkGlue bridge. |
Modules/Bridge/VtkGlue/wrapping/VtkGlue.i | Defines the Python object boundary for VTK image and polygon-data objects. |
| Modules/…/CMakeLists.txt | Defines the VtkGlue wrapper setup, including Windows VTK DLL loading for Python imports. |
| Modules/…/VtkGlueRoundTripTest.py | Demonstrates the direct ITK-to-VTK-to-ITK object contract and its input type checks. |
| Modules/…/VtkGlueABI3EncodingTest.py | Protects the VTK wrapper encodings required by the stable Python object handoff. |
| Modules/…/UpdateFromUpstream.sh | Defines the selected VXL upstream snapshot that supports ITK's VXL-backed paths. |
| Modules/…/itkOpenCVImageBridge.h | Defines OpenCV image conversion and its supported color and pixel handoffs. |
| Modules/…/itkOpenCVVideoIO.h | Defines OpenCV-backed file and camera access through ITK video I/O. |
| Modules/…/itkVXLVideoIO.h | Defines VXL-backed file and camera access through the same ITK video interface. |