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  itkOverrideGetNameOfClassMacro(FDKConeBeamReconstructionFilter);
90 
92  itkGetModifiableObjectMacro(Geometry, ThreeDCircularProjectionGeometry);
93  itkSetObjectMacro(Geometry, ThreeDCircularProjectionGeometry);
95 
99  {
100  return m_WeightFilter;
101  }
102 
104  typename RampFilterType::Pointer
106  {
107  return m_RampFilter;
108  }
109 
112  itkGetMacro(ProjectionSubsetSize, unsigned int);
113  itkSetMacro(ProjectionSubsetSize, unsigned int);
115 
119  itkGetMacro(BackProjectionFilter, BackProjectionFilterPointer);
120  virtual void
121  SetBackProjectionFilter(BackProjectionFilterType * _arg);
123 
124 protected:
126  ~FDKConeBeamReconstructionFilter() override = default;
127 
129  void
130  VerifyPreconditions() const override;
131 
132  void
133  GenerateInputRequestedRegion() override;
134 
135  void
136  GenerateOutputInformation() override;
137 
138  void
139  GenerateData() override;
140 
143  void
144  VerifyInputInformation() const override
145  {}
146 
152 
153 private:
155  unsigned int m_ProjectionSubsetSize{ 16 };
156 
159 }; // end of class
160 
161 } // end namespace rtk
162 
163 #ifndef ITK_MANUAL_INSTANTIATION
164 # include "rtkFDKConeBeamReconstructionFilter.hxx"
165 #endif
166 
167 #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.