Medical Imaging Interaction Toolkit  2021.02.99-9e0e53e2
Medical Imaging Interaction Toolkit
mitkOclDataSetToDataSetFilter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef __mitkOclDataSetToDataSetFilter_h
14 #define __mitkOclDataSetToDataSetFilter_h
15 
16 #include "mitkOclDataSetFilter.h"
17 
18 namespace mitk
19 {
20 class OclDataSetFilter;
21 class OclDataSetToDataSetFilter;
22 
26 class MITKOPENCL_EXPORT OclDataSetToDataSetFilter: public OclDataSetFilter
27 {
28 public:
32  void* GetOutput();
33 
40  mitk::OclDataSet::Pointer GetGPUOutput();
41 
42 protected:
47 
49  virtual ~OclDataSetToDataSetFilter();
50 
52  mitk::OclDataSet::Pointer m_Output;
53 
55  virtual void Update() = 0;
56 
66  bool InitExec(cl_kernel ckKernel, unsigned int* dimensions, size_t outputDataSize, unsigned int outputBpE);
67 
68  bool InitExecNoInput(cl_kernel ckKernel, unsigned int* dimensions, size_t outputDataSize, unsigned int outputBpE);
69 
71  virtual int GetBytesPerElem();
72 
73  unsigned int m_CurrentSizeOutput;
74 
75 private:
77  unsigned int m_BlockDims[3];
78 };
79 }
80 #endif // __mitkOclDataSetToDataSetFilter_h
DataCollection - Class to facilitate loading/accessing structured data.
The OclDataSetFilter is the topmost class for all filter which take DataSets as input.
The OclDataSetToDataSetFilter is the base class for all OpenCL DataSet filter generating DataSets...