RTK  2.0.1
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  * 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 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>
64  public itk::InPlaceImageFilter<TInputImage, TOutputImage>
65 {
66 public:
67  ITK_DISALLOW_COPY_AND_ASSIGN(FDKConeBeamReconstructionFilter);
68 
74 
76  using InputImageType = TInputImage;
77  using OutputImageType = TOutputImage;
78 
85 
87  itkNewMacro(Self);
88 
91 
93  itkGetModifiableObjectMacro(Geometry, ThreeDCircularProjectionGeometry)
94  itkSetObjectMacro(Geometry, ThreeDCircularProjectionGeometry)
95 
97  typename WeightFilterType::Pointer GetWeightFilter() { return m_WeightFilter; }
98 
100  typename RampFilterType::Pointer GetRampFilter() { return m_RampFilter; }
101 
104  itkGetMacro(ProjectionSubsetSize, unsigned int);
105  itkSetMacro(ProjectionSubsetSize, unsigned int);
107 
111  itkGetMacro(BackProjectionFilter, BackProjectionFilterPointer);
112  virtual void SetBackProjectionFilter (const BackProjectionFilterPointer _arg);
114 
115 protected:
117  ~FDKConeBeamReconstructionFilter() override = default;
118 
119  void GenerateInputRequestedRegion() override;
120 
121  void GenerateOutputInformation() override;
122 
123  void GenerateData() override;
124 
127 #if ITK_VERSION_MAJOR<5
128  void VerifyInputInformation() override {}
129 #else
130  void VerifyInputInformation() const override {}
131 #endif
132 
133 
139 
140 private:
142  unsigned int m_ProjectionSubsetSize{16};
143 
146 }; // end of class
147 
148 } // end namespace rtk
149 
150 #ifndef ITK_MANUAL_INSTANTIATION
151 #include "rtkFDKConeBeamReconstructionFilter.hxx"
152 #endif
153 
154 #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.
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.
#define itkSetMacro(name, type)