ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkFourDConjugateGradientConeBeamReconstructionFilter.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 rtkFourDConjugateGradientConeBeamReconstructionFilter_h
20#define rtkFourDConjugateGradientConeBeamReconstructionFilter_h
21
29
34#ifdef RTK_USE_CUDA
36#endif
37
38namespace rtk
39{
40
94
95template <typename VolumeSeriesType, typename ProjectionStackType>
97 : public rtk::IterativeConeBeamReconstructionFilter<VolumeSeriesType, ProjectionStackType>
98{
99public:
100 ITK_DISALLOW_COPY_AND_MOVE(FourDConjugateGradientConeBeamReconstructionFilter);
101
107
109 using InputImageType = VolumeSeriesType;
110 using OutputImageType = VolumeSeriesType;
111 using VolumeType = ProjectionStackType;
112
120
123
127#ifdef RTK_USE_CUDA
129 typename std::conditional_t<std::is_same_v<VolumeSeriesType, CPUVolumeSeriesType>,
131 CudaConjugateGradientImageFilter<VolumeSeriesType>>;
132#else
134#endif
135
137 itkNewMacro(Self);
138
141
143 itkGetConstObjectMacro(Geometry, ThreeDCircularProjectionGeometry);
144 itkSetConstObjectMacro(Geometry, ThreeDCircularProjectionGeometry);
145
147 itkGetMacro(NumberOfIterations, unsigned int);
148 itkSetMacro(NumberOfIterations, unsigned int);
149
151 itkGetMacro(CudaConjugateGradient, bool);
152 itkSetMacro(CudaConjugateGradient, bool);
153
155 void
156 SetInputVolumeSeries(const VolumeSeriesType * VolumeSeries);
157 typename VolumeSeriesType::ConstPointer
159
161 void
162 SetInputProjectionStack(const ProjectionStackType * Projections);
163 typename ProjectionStackType::ConstPointer
165
167 void
169
171 virtual void
172 SetSignal(const std::vector<double> & signal);
173
175 itkSetMacro(DisableDisplacedDetectorFilter, bool);
176 itkGetMacro(DisableDisplacedDetectorFilter, bool);
177
178protected:
181
183 void
184 VerifyPreconditions() const override;
185
186 void
188
189 void
191
192 void
193 GenerateData() override;
194
197 void
198 VerifyInputInformation() const override
199 {}
200
209
211 std::vector<double> m_Signal;
213
214 // Iteration reporting
216
217private:
220
223
225 void
227
228}; // end of class
229
230} // end namespace rtk
231
232#ifndef ITK_MANUAL_INSTANTIATION
233# include "rtkFourDConjugateGradientConeBeamReconstructionFilter.hxx"
234#endif
235
236#endif
Array2D class representing a 2D array.
Definition itkArray2D.h:43
Abstraction of the Events used to communicating among filters and with GUIs.
Templated n-dimensional image class.
Definition itkImage.h:89
Implements iterations tracking for a filter.
Base class for most ITK classes.
Definition itkObject.h:62
Implements transparent reference counting.
Solves AX = B by conjugate gradient.
Base class for forward projection, i.e. accumulation along x-ray lines.
BackProjectionImageFilter< ProjectionStackType, VolumeType > BackProjectionFilterType
ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType > ProjStackToFourDFilterType
void SetInputVolumeSeries(const VolumeSeriesType *VolumeSeries)
virtual void SetSignal(const std::vector< double > &signal)
void ReportProgress(itk::Object *, const itk::EventObject &)
typename itk::Image< typename VolumeSeriesType::PixelType, VolumeSeriesType::ImageDimension > CPUVolumeSeriesType
void SetInputProjectionStack(const ProjectionStackType *Projections)
ForwardProjectionImageFilter< VolumeType, ProjectionStackType > ForwardProjectionFilterType
FourDReconstructionConjugateGradientOperator< VolumeSeriesType, ProjectionStackType > CGOperatorFilterType
VolumeSeriesType::ConstPointer GetInputVolumeSeries()
ProjectionStackType::ConstPointer GetInputProjectionStack()
IterativeConeBeamReconstructionFilter< VolumeSeriesType, ProjectionStackType > Superclass
Implements part of the 4D reconstruction by conjugate gradient.
Mother class for cone beam reconstruction filters which need runtime selection of their forward and b...
enum { FP_JOSEPH=0, FP_CUDARAYCAST=2, FP_JOSEPHATTENUATED=3, FP_ZENG=4, FP_CUDAWARP=5, FP_CUDAZENG=6 } ForwardProjectionType
enum { BP_VOXELBASED=0, BP_JOSEPH=1, BP_CUDAVOXELBASED=2, BP_CUDARAYCAST=4, BP_JOSEPHATTENUATED=5, BP_ZENG=6, BP_CUDAWARP=7, BP_CUDAZENG=8 } BackProjectionType
Implements part of the 4D reconstruction by conjugate gradient.
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)