ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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 "rtkConfiguration.h"
26
28
29namespace rtk
30{
31
62template <class TInputImage, class TOutputImage = TInputImage, class TFFTPrecision = double>
63class ITK_TEMPLATE_EXPORT FDKConeBeamReconstructionFilter : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
64{
65public:
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);
94
98 {
99 return m_WeightFilter;
100 }
101
103 typename RampFilterType::Pointer
105 {
106 return m_RampFilter;
107 }
108
111 itkGetMacro(ProjectionSubsetSize, unsigned int);
112 itkSetMacro(ProjectionSubsetSize, unsigned int);
113
117 itkGetConstMacro(AngularTolerance, double);
118 itkSetMacro(AngularTolerance, double);
119
123 itkGetMacro(BackProjectionFilter, BackProjectionFilterPointer);
124 virtual void
126
127protected:
130
132 void
133 VerifyPreconditions() const override;
134
135 void
137
138 void
140
141 void
142 GenerateData() override;
143
146 void
147 VerifyInputInformation() const override
148 {}
149
155
156private:
158 unsigned int m_ProjectionSubsetSize{ 16 };
159
161 double m_AngularTolerance{ 30. };
162
165}; // end of class
166
167} // end namespace rtk
168
169#ifndef ITK_MANUAL_INSTANTIATION
170# include "rtkFDKConeBeamReconstructionFilter.hxx"
171#endif
172
173#endif
Decrease the image size by cropping the image to the selected region bounds.
Base class for filters that take an image as input and produce an image as output.
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
CPU version of the backprojection of the FDK algorithm.
typename BackProjectionFilterType::Pointer BackProjectionFilterPointer
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
rtk::FFTRampImageFilter< OutputImageType, OutputImageType, TFFTPrecision > RampFilterType
itkSetMacro(ProjectionSubsetSize, unsigned int)
itk::ExtractImageFilter< InputImageType, OutputImageType > ExtractFilterType
void GenerateInputRequestedRegion() override
rtk::FDKWeightProjectionFilter< InputImageType, OutputImageType > WeightFilterType
~FDKConeBeamReconstructionFilter() override=default
itkSetMacro(AngularTolerance, double)
void VerifyPreconditions() const override
rtk::FDKBackProjectionImageFilter< OutputImageType, OutputImageType > BackProjectionFilterType
virtual void SetBackProjectionFilter(BackProjectionFilterType *_arg)
Weighting of projections to correct for the divergence in filtered backprojection reconstruction algo...
Implements the ramp image filter of the filtered backprojection algorithm.
Projection geometry for a source and a 2-D flat panel.