RTK  2.6.0
Reconstruction Toolkit
rtkFDKConeBeamReconstructionFilter.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  * https://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 rtkFDKConeBeamReconstructionFilter_h
20 #define rtkFDKConeBeamReconstructionFilter_h
21 
23 #include "rtkFFTRampImageFilter.h"
25 #include "rtkConfiguration.h"
26 
27 #include <itkExtractImageFilter.h>
28 
29 namespace rtk
30 {
31 
62 template <class TInputImage, class TOutputImage = TInputImage, class TFFTPrecision = double>
63 class ITK_TEMPLATE_EXPORT FDKConeBeamReconstructionFilter : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
64 {
65 public:
66  ITK_DISALLOW_COPY_AND_MOVE(FDKConeBeamReconstructionFilter);
67 
73 
75  using InputImageType = TInputImage;
76  using OutputImageType = TOutputImage;
77 
84 
86  itkNewMacro(Self);
87 
89 #ifdef itkOverrideGetNameOfClassMacro
90  itkOverrideGetNameOfClassMacro(FDKConeBeamReconstructionFilter);
91 #else
93 #endif
94 
95 
97  itkGetModifiableObjectMacro(Geometry, ThreeDCircularProjectionGeometry);
98  itkSetObjectMacro(Geometry, ThreeDCircularProjectionGeometry);
100 
104  {
105  return m_WeightFilter;
106  }
107 
109  typename RampFilterType::Pointer
111  {
112  return m_RampFilter;
113  }
114 
117  itkGetMacro(ProjectionSubsetSize, unsigned int);
118  itkSetMacro(ProjectionSubsetSize, unsigned int);
120 
124  itkGetMacro(BackProjectionFilter, BackProjectionFilterPointer);
125  virtual void
126  SetBackProjectionFilter(const BackProjectionFilterPointer _arg);
128 
129 protected:
131  ~FDKConeBeamReconstructionFilter() override = default;
132 
134  void
135  VerifyPreconditions() const override;
136 
137  void
138  GenerateInputRequestedRegion() override;
139 
140  void
141  GenerateOutputInformation() override;
142 
143  void
144  GenerateData() override;
145 
148  void
149  VerifyInputInformation() const override
150  {}
151 
157 
158 private:
160  unsigned int m_ProjectionSubsetSize{ 16 };
161 
164 }; // end of class
165 
166 } // end namespace rtk
167 
168 #ifndef ITK_MANUAL_INSTANTIATION
169 # include "rtkFDKConeBeamReconstructionFilter.hxx"
170 #endif
171 
172 #endif
Weighting of projections to correct for the divergence in filtered backprojection reconstruction algo...
typename BackProjectionFilterType::Pointer BackProjectionFilterPointer
ThreeDCircularProjectionGeometry::Pointer m_Geometry
TInputImage InputImageType
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)
TOutputImage OutputImageType
CPU version of the backprojection of the FDK algorithm.
Implements Feldkamp, David and Kress cone-beam reconstruction.
Implements the ramp image filter of the filtered backprojection algorithm.