Medical Imaging Interaction Toolkit  2021.02.99-9e0e53e2
Medical Imaging Interaction Toolkit
mitkOclImageToImageFilter.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 __mitkOclImageToImageFilter_h
14 #define __mitkOclImageToImageFilter_h
15 
16 #include "mitkOclImageFilter.h"
17 
18 namespace mitk
19 {
20 class OclImageFilter;
21 class OclImageToImageFilter;
22 
26 class MITKOPENCL_EXPORT OclImageToImageFilter: public OclImageFilter
27 {
28 public:
32  mitk::Image::Pointer GetOutput();
33 
40  mitk::OclImage::Pointer GetGPUOutput();
41 
42 protected:
47 
49  virtual ~OclImageToImageFilter();
50 
52  mitk::OclImage::Pointer m_Output;
53 
55  virtual void Update() = 0;
56 
58  virtual mitk::PixelType GetOutputType();
59 
66  bool InitExec(cl_kernel ckKernel);
67  bool InitExec(cl_kernel ckKernel, unsigned int* dimensions);
68 
70  virtual int GetBytesPerElem();
71 
72 private:
74  unsigned int m_BlockDims[3];
75 
76 };
77 }
78 #endif // __mitkOclImageToImageFilter_h
DataCollection - Class to facilitate loading/accessing structured data.
The OclImageToImageFilter is the base class for all OpenCL image filter generating images...
The OclImageFilter is the topmost class for all filter which take images as input.
Class for defining the data type of pixels.
Definition: mitkPixelType.h:51