Medical Imaging Interaction Toolkit  2023.12.00
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
mitk::OclDataSetFilter
The OclDataSetFilter is the topmost class for all filter which take DataSets as input.
Definition: mitkOclDataSetFilter.h:34
mitk::OclDataSetToDataSetFilter::m_CurrentSizeOutput
unsigned int m_CurrentSizeOutput
Definition: mitkOclDataSetToDataSetFilter.h:73
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::OclDataSetToDataSetFilter
The OclDataSetToDataSetFilter is the base class for all OpenCL DataSet filter generating DataSets.
Definition: mitkOclDataSetToDataSetFilter.h:26
mitkOclDataSetFilter.h
mitk::OclDataSetToDataSetFilter::m_Output
mitk::OclDataSet::Pointer m_Output
Definition: mitkOclDataSetToDataSetFilter.h:52