Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
The MITK OpenCL Module provides a basic class structure to allow usage of OpenCL-accelerated parallel computing.
The MITK OpenCL module needs an OpenCL Device ( most likely a graphics card, but works also on some CPUs ) and the corresponding driver. Furthermore the OpenCL library and the headers are needed. A list of supported hardware is provided by Khronos.org . For the driver and the libraries please look at the support pages of the hardware manufacturer. Quick Links to the most likely of them:
To activate the module, you have to activate the CMake option
MITK_USE_OpenCL
The build system tries to find the OpenCL library and the include path automatically. If this attempt failes, you will be prompted to manually specify following variables:
OPENCL_INCLUDE_DIRS OPENCL_LIBRARIES
For own implementations, the OpenCL Module allows for building up a filtering pipeline in MITK Style ( see more in Pipelining Concept ). The OpenCL filter can be simply connected also to an existing MITK image filtering pipeline since the mitk::OclImageToImageFilter provide a SetInput and GetOutput methods expecting an mitk::Image and returning it respectively.
Here is a list of examples: