RTK  1.4.0
Reconstruction Toolkit
rtkIterativeConeBeamReconstructionFilter.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 rtkIterativeConeBeamReconstructionFilter_h
20 #define rtkIterativeConeBeamReconstructionFilter_h
21 
22 // Forward projection filters
23 #include "rtkConfiguration.h"
25 // Back projection filters
27 
28 #ifdef RTK_USE_CUDA
32 #endif
33 
34 namespace rtk
35 {
36 
49 template<class TOutputImage,
50  class ProjectionStackType=TOutputImage>
52  public itk::ImageToImageFilter<TOutputImage, TOutputImage>
53 {
54 public:
60 
62  typedef ProjectionStackType VolumeType;
63  typedef enum {FP_UNKNOWN=-1,
64  FP_JOSEPH=0,
65  FP_CUDARAYCAST=2,
66  FP_JOSEPHATTENUATED=3} ForwardProjectionType;
67  typedef enum {BP_UNKNOWN=-1,
68  BP_VOXELBASED=0,
69  BP_JOSEPH=1,
70  BP_CUDAVOXELBASED=2,
71  BP_CUDARAYCAST=4,
72  BP_JOSEPHATTENUATED=5} BackProjectionType;
73 
79 
81  itkNewMacro(Self)
82 
83 
85 
87  virtual void SetForwardProjectionFilter (ForwardProjectionType fwtype);
88  ForwardProjectionType GetForwardProjectionFilter () { return m_CurrentForwardProjectionConfiguration; }
89  virtual void SetBackProjectionFilter (BackProjectionType bptype);
90  BackProjectionType GetBackProjectionFilter () { return m_CurrentBackProjectionConfiguration; }
92 
93 protected:
95  virtual ~IterativeConeBeamReconstructionFilter() ITK_OVERRIDE {}
96 
99  virtual BackProjectionPointerType InstantiateBackProjectionFilter (int bptype);
100 
103  virtual ForwardProjectionPointerType InstantiateForwardProjectionFilter (int fwtype);
104 
109 
110 private:
111  //purposely not implemented
113  void operator=(const Self&);
114 
115 }; // end of class
116 
117 } // end namespace rtk
118 
119 #ifndef ITK_MANUAL_INSTANTIATION
120 #include "rtkIterativeConeBeamReconstructionFilter.hxx"
121 #endif
122 
123 #endif
rtk::BackProjectionImageFilter< ProjectionStackType, VolumeType > BackProjectionFilterType
Base class for forward projection, i.e. accumulation along x-ray lines.
rtk::ForwardProjectionImageFilter< VolumeType, ProjectionStackType > ForwardProjectionFilterType
Mother class for cone beam reconstruction filters which need runtime selection of their forward and b...
itk::ImageToImageFilter< TOutputImage, TOutputImage > Superclass