ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkFourDSARTConeBeamReconstructionFilter.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 rtkFourDSARTConeBeamReconstructionFilter_h
20#define rtkFourDSARTConeBeamReconstructionFilter_h
21
24
25#include <itkAddImageAdaptor.h>
26#include <itkAddImageFilter.h>
32
39
40namespace rtk
41{
42
121template <class VolumeSeriesType, class ProjectionStackType>
123 : public rtk::IterativeConeBeamReconstructionFilter<VolumeSeriesType, ProjectionStackType>
124{
125public:
126 ITK_DISALLOW_COPY_AND_MOVE(FourDSARTConeBeamReconstructionFilter);
127
133
135 using InputImageType = VolumeSeriesType;
136 using OutputImageType = VolumeSeriesType;
137 using VolumeType = ProjectionStackType;
138
141
160
162 itkNewMacro(Self);
163
165 itkOverrideGetNameOfClassMacro(FourDSARTConeBeamReconstructionFilter);
166
168 void
169 SetInputVolumeSeries(const VolumeSeriesType * VolumeSeries);
170 typename VolumeSeriesType::ConstPointer
172
174 void
175 SetInputProjectionStack(const ProjectionStackType * Projection);
176 typename ProjectionStackType::Pointer
178
180 itkGetModifiableObjectMacro(Geometry, ThreeDCircularProjectionGeometry);
181 itkSetObjectMacro(Geometry, ThreeDCircularProjectionGeometry);
182
184 itkGetMacro(NumberOfIterations, unsigned int);
185 itkSetMacro(NumberOfIterations, unsigned int);
186
188 itkGetMacro(NumberOfProjectionsPerSubset, unsigned int);
189 itkSetMacro(NumberOfProjectionsPerSubset, unsigned int);
190
192 itkGetMacro(Lambda, double);
193 itkSetMacro(Lambda, double);
194
196 itkGetMacro(EnforcePositivity, bool);
197 itkSetMacro(EnforcePositivity, bool);
198
200 void
202
204 virtual void
205 SetSignal(const std::vector<double> & signal);
206
208 itkSetMacro(DisableDisplacedDetectorFilter, bool);
209 itkGetMacro(DisableDisplacedDetectorFilter, bool);
210
211protected:
214
216 void
217 VerifyPreconditions() const override;
218
219 void
221
222 void
224
225 void
226 GenerateData() override;
227
230 void
231 VerifyInputInformation() const override
232 {}
233
252
254 std::vector<unsigned int> m_ProjectionsOrder;
257 std::vector<double> m_Signal;
259
260private:
264
267
270
273 double m_Lambda;
274}; // end of class
275
276} // end namespace rtk
277
278#ifndef ITK_MANUAL_INSTANTIATION
279# include "rtkFourDSARTConeBeamReconstructionFilter.hxx"
280#endif
281
282#endif
Pixel-wise addition of two images.
Array2D class representing a 2D array.
Definition itkArray2D.h:43
Decrease the image size by cropping the image to the selected region bounds.
Pixel-wise multiplication of two images.
Implements transparent reference counting.
Pixel-wise subtraction of two images.
Set image values to a user-specified value if they are below, above, or outside threshold values.
Generate an n-dimensional image with constant pixel values.
Base class for forward projection, i.e. accumulation along x-ray lines.
itk::ExtractImageFilter< ProjectionStackType, ProjectionStackType > ExtractFilterType
void SetInputVolumeSeries(const VolumeSeriesType *VolumeSeries)
ConstantProjectionStackSourceType::Pointer m_ConstantProjectionStackSource
~FourDSARTConeBeamReconstructionFilter() override=default
rtk::DisplacedDetectorImageFilter< ProjectionStackType > DisplacedDetectorFilterType
rtk::ConstantImageSource< ProjectionStackType > ConstantProjectionStackSourceType
FourDToProjectionStackFilterType::Pointer m_FourDToProjectionStackFilter
typename Superclass::ForwardProjectionType ForwardProjectionType
itk::MultiplyImageFilter< ProjectionStackType, ProjectionStackType, ProjectionStackType > MultiplyFilterType
rtk::RayBoxIntersectionImageFilter< ProjectionStackType, ProjectionStackType > RayBoxIntersectionFilterType
IterativeConeBeamReconstructionFilter< VolumeSeriesType, ProjectionStackType > Superclass
itk::SubtractImageFilter< ProjectionStackType, ProjectionStackType > SubtractFilterType
rtk::ConstantImageSource< VolumeSeriesType > ConstantVolumeSeriesSourceType
rtk::BackProjectionImageFilter< VolumeType, VolumeType > BackProjectionFilterType
virtual void SetSignal(const std::vector< double > &signal)
VolumeSeriesType::ConstPointer GetInputVolumeSeries()
rtk::ForwardProjectionImageFilter< ProjectionStackType, ProjectionStackType > ForwardProjectionFilterType
rtk::FourDToProjectionStackImageFilter< ProjectionStackType, VolumeSeriesType > FourDToProjectionStackFilterType
itk::ThresholdImageFilter< VolumeSeriesType > ThresholdFilterType
ProjectionStackToFourDFilterType::Pointer m_ProjectionStackToFourDFilter
itk::DivideOrZeroOutImageFilter< ProjectionStackType, ProjectionStackType, ProjectionStackType > DivideFilterType
void SetInputProjectionStack(const ProjectionStackType *Projection)
itk::AddImageFilter< VolumeSeriesType, VolumeSeriesType > AddFilterType
ConstantVolumeSeriesSourceType::Pointer m_ConstantVolumeSeriesSource
ProjectionStackType::Pointer GetInputProjectionStack()
void SetWeights(itk::Array2D< float > _arg)
rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType > ProjectionStackToFourDFilterType
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)