RTK  1.4.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  * 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:
72 
74  typedef TInputImage InputImageType;
75  typedef TOutputImage OutputImageType;
76 
83 
85  itkNewMacro(Self);
86 
89 
91  itkGetModifiableObjectMacro(Geometry, ThreeDCircularProjectionGeometry)
92  itkSetObjectMacro(Geometry, ThreeDCircularProjectionGeometry)
93 
95  typename WeightFilterType::Pointer GetWeightFilter() { return m_WeightFilter; }
96 
98  typename RampFilterType::Pointer GetRampFilter() { return m_RampFilter; }
99 
102  itkGetMacro(ProjectionSubsetSize, unsigned int);
103  itkSetMacro(ProjectionSubsetSize, unsigned int);
105 
109  itkGetMacro(BackProjectionFilter, BackProjectionFilterPointer);
110  virtual void SetBackProjectionFilter (const BackProjectionFilterPointer _arg);
112 
113 protected:
115  virtual ~FDKConeBeamReconstructionFilter() ITK_OVERRIDE {}
116 
117  void GenerateInputRequestedRegion() ITK_OVERRIDE;
118 
119  void GenerateOutputInformation() ITK_OVERRIDE;
120 
121  void GenerateData() ITK_OVERRIDE;
122 
125 #if ITK_VERSION_MAJOR<5
126  void VerifyInputInformation() ITK_OVERRIDE {}
127 #else
128  void VerifyInputInformation() const ITK_OVERRIDE {}
129 #endif
130 
131 
133  typename ExtractFilterType::Pointer m_ExtractFilter;
136  BackProjectionFilterPointer m_BackProjectionFilter;
137 
138 private:
139  //purposely not implemented
140  FDKConeBeamReconstructionFilter(const Self&);
141  void operator=(const Self&);
142 
145 
148 }; // end of class
149 
150 } // end namespace rtk
151 
152 #ifndef ITK_MANUAL_INSTANTIATION
153 #include "rtkFDKConeBeamReconstructionFilter.hxx"
154 #endif
155 
156 #endif
Weighting of projections to correct for the divergence in filtered backprojection reconstruction algo...
BackProjectionFilterType::Pointer BackProjectionFilterPointer
rtk::FDKWeightProjectionFilter< InputImageType, OutputImageType > WeightFilterType
rtk::FDKBackProjectionImageFilter< OutputImageType, OutputImageType > BackProjectionFilterType
ThreeDCircularProjectionGeometry::Pointer m_Geometry
rtk::FFTRampImageFilter< OutputImageType, OutputImageType, TFFTPrecision > RampFilterType
Projection geometry for a source and a 2-D flat panel.
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
CPU version of the backprojection of the FDK algorithm.
Implements Feldkamp, David and Kress cone-beam reconstruction.
itk::ExtractImageFilter< InputImageType, OutputImageType > ExtractFilterType
Implements the ramp image filter of the filtered backprojection algorithm.
#define itkSetMacro(name, type)