RTK  1.4.0
Reconstruction Toolkit
rtkCudaWeidingerForwardModelImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright RTK Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 
19 #ifndef rtkCudaWeidingerForwardModelImageFilter_h
20 #define rtkCudaWeidingerForwardModelImageFilter_h
21 
22 #include "rtkConfiguration.h"
23 //Conditional definition of the class to pass ITKHeaderTest
24 #ifdef RTK_USE_CUDA
25 
27 #include "itkCudaImageToImageFilter.h"
28 #include "itkCudaUtil.h"
29 #include "itkCudaKernelManager.h"
30 #include "RTKExport.h"
31 
40 namespace rtk
41 {
42 template <class TMaterialProjections,
43  class TPhotonCounts,
44  class TSpectrum,
45  class TProjections=itk::CudaImage<typename TMaterialProjections::PixelType::ValueType, TMaterialProjections::ImageDimension> >
46 class ITK_EXPORT CudaWeidingerForwardModelImageFilter :
47  public itk::CudaImageToImageFilter< TMaterialProjections, TMaterialProjections,
48  WeidingerForwardModelImageFilter< TMaterialProjections, TPhotonCounts, TSpectrum, TProjections > >
49 {
50 public:
52  typedef CudaWeidingerForwardModelImageFilter Self;
53  typedef WeidingerForwardModelImageFilter<TMaterialProjections, TPhotonCounts, TSpectrum, TProjections> Superclass;
54  typedef itk::CudaImageToImageFilter<TMaterialProjections, TMaterialProjections, Superclass > GPUSuperclass;
55  typedef itk::SmartPointer<Self> Pointer;
56  typedef itk::SmartPointer<const Self> ConstPointer;
57 
59  itkNewMacro(Self);
60 
62  itkTypeMacro(CudaWeidingerForwardModelImageFilter, ImageToImageFilter);
63 
64 protected:
65  CudaWeidingerForwardModelImageFilter();
66  ~CudaWeidingerForwardModelImageFilter() {};
67 
68  virtual void GPUGenerateData();
69 
70 private:
71  //purposely not implemented
72  CudaWeidingerForwardModelImageFilter(const Self&);
73  void operator=(const Self&);
74 }; // end of class
75 
76 } // end namespace rtk
77 
78 #ifndef ITK_MANUAL_INSTANTIATION
79 #include "rtkCudaWeidingerForwardModelImageFilter.hxx"
80 #endif
81 
82 #endif //end conditional definition of the class
83 
84 #endif