Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
14 #ifndef mitkOclFilter_h
15 #define mitkOclFilter_h
23 #include <MitkOpenCLExports.h>
42 void AddSourceFile(
const char* filename);
50 void SetCompilerFlags(
const char* flags);
55 virtual bool IsInitialized();
60 virtual unsigned long GetDeviceMemory();
98 size_t m_LocalWorkSize[3];
101 size_t m_GlobalWorkSize[3];
104 void SetWorkingSize(
unsigned int locx,
unsigned int dimx,
105 unsigned int locy = 1,
unsigned int dimy = 1,
106 unsigned int locz = 1,
unsigned int dimz = 1);
110 bool ExecuteKernel( cl_kernel kernel,
unsigned int workSizeDim );
114 bool ExecuteKernelChunks( cl_kernel kernel,
unsigned int workSizeDim,
size_t* chunksDim );
119 bool ExecuteKernelChunksInBatches(cl_kernel kernel,
unsigned int workSizeDim,
size_t* chunksDim,
size_t batchSize,
int waitTimems);
132 void CompileSource();
140 void SetSourcePreambel(
const char* preambel);
cl_command_queue m_CommandQue
Command queue for the filter.
std::string m_FilterID
Unique ID of the filter, needs to be specified in the constructor of the derived class.
const char * m_ClCompilerFlags
String that contains the compiler flags.
const char * m_Preambel
source preambel for e.g. #define commands to be inserted into the OpenCL source
std::vector< const char * > CStringList
Find image slices visible on a given plane.
std::vector< size_t > ClSizeList
CStringList m_ClFiles
List of sourcefiles that will be compiled for this filter.
bool m_Initialized
status of the filter
Superclass for all OpenCL based filter.
cl_program m_ClProgram
The compiled OpenCL program.