18#ifndef rtkFourDReconstructionConjugateGradientOperator_h
19#define rtkFourDReconstructionConjugateGradientOperator_h
129template <
typename VolumeSeriesType,
typename ProjectionStackType>
153 typename VolumeSeriesType::ConstPointer
159 typename ProjectionStackType::ConstPointer
175 typename std::conditional_t<std::is_same_v<ProjectionStackType, CPUProjectionStackType>,
177 CudaDisplacedDetectorImageFilter>;
179 typename std::conditional_t<std::is_same_v<ProjectionStackType, CPUProjectionStackType>,
181 CudaInterpolateImageFilter>;
183 conditional_t<std::is_same_v<ProjectionStackType, CPUProjectionStackType>,
SplatFilterType, CudaSplatImageFilter>;
185 typename std::conditional_t<std::is_same_v<ProjectionStackType, CPUProjectionStackType>,
187 CudaConstantVolumeSource>;
189 typename std::conditional_t<std::is_same_v<ProjectionStackType, CPUProjectionStackType>,
191 CudaConstantVolumeSeriesSource>;
213 itkGetMacro(UseCudaInterpolation,
bool);
215 itkGetMacro(UseCudaSplat,
bool);
217 itkGetMacro(UseCudaSources,
bool);
229 itkGetMacro(DisableDisplacedDetectorFilter,
bool);
277#ifndef ITK_MANUAL_INSTANTIATION
278# include "rtkFourDReconstructionConjugateGradientOperator.hxx"
Array2D class representing a 2D array.
Templated n-dimensional image class.
Implements transparent reference counting.
itk::SmartPointer< Self > Pointer
ConjugateGradientOperator()
Generate an n-dimensional image with constant pixel values.
itk::SmartPointer< Self > Pointer
Weigting for displaced detectors.
itk::SmartPointer< Self > Pointer
Base class for forward projection, i.e. accumulation along x-ray lines.
itk::SmartPointer< Self > Pointer
ConstantImageSource< VolumeType > ConstantImageSourceType
typename itk::Image< typename ProjectionStackType::PixelType, ProjectionStackType::ImageDimension > CPUProjectionStackType
ConstantImageSourceType::Pointer m_ConstantImageSource2
void SetForwardProjectionFilter(ForwardProjectionFilterType *_arg)
ThreeDCircularProjectionGeometry::ConstPointer m_Geometry
void GenerateInputRequestedRegion() override
DisplacedDetectorFilterType::Pointer m_DisplacedDetectorFilter
VolumeSeriesType::ConstPointer GetInputVolumeSeries()
InterpolationFilterType::Pointer m_InterpolationFilter
void SetInputProjectionStack(const ProjectionStackType *Projections)
FourDReconstructionConjugateGradientOperator()
ConjugateGradientOperator< VolumeSeriesType > Superclass
ForwardProjectionFilterType::Pointer m_ForwardProjectionFilter
void GenerateOutputInformation() override
~FourDReconstructionConjugateGradientOperator() override=default
bool m_DisableDisplacedDetectorFilter
itk::Array2D< float > m_Weights
void VerifyPreconditions() const override
virtual void SetSignal(const std::vector< double > &signal)
ConstantVolumeSeriesSourceType::Pointer m_ConstantVolumeSeriesSource
std::vector< double > m_Signal
InterpolatorWithKnownWeightsImageFilter< VolumeType, VolumeSeriesType > InterpolationFilterType
DisplacedDetectorImageFilter< ProjectionStackType > DisplacedDetectorFilterType
ConstantVolumeSeriesSourceType CudaConstantVolumeSeriesSourceType
ConstantImageSource< ProjectionStackType > ConstantProjectionStackSourceType
InterpolationFilterType CudaInterpolateImageFilterType
ConstantProjectionStackSourceType::Pointer m_ConstantProjectionStackSource
ConstantImageSourceType CudaConstantVolumeSourceType
void SetInputVolumeSeries(const VolumeSeriesType *VolumeSeries)
ConstantImageSourceType::Pointer m_ConstantImageSource1
BackProjectionImageFilter< ProjectionStackType, ProjectionStackType > BackProjectionFilterType
void GenerateData() override
ProjectionStackType::ConstPointer GetInputProjectionStack()
ProjectionStackType VolumeType
BackProjectionFilterType::Pointer m_BackProjectionFilter
bool m_UseCudaInterpolation
SplatFilterType::Pointer m_SplatFilter
SplatFilterType CudaSplatImageFilterType
void SetBackProjectionFilter(BackProjectionFilterType *_arg)
ForwardProjectionImageFilter< ProjectionStackType, ProjectionStackType > ForwardProjectionFilterType
void InitializeConstantSources()
FourDReconstructionConjugateGradientOperator Self
SplatWithKnownWeightsImageFilter< VolumeSeriesType, VolumeType > SplatFilterType
ConstantImageSource< VolumeSeriesType > ConstantVolumeSeriesSourceType
itk::SmartPointer< Self > Pointer
Interpolates (linearly) in a 3D+t sequence of volumes to get a 3D volume.
itk::SmartPointer< Self > Pointer
Splats (linearly) a 3D volume into a 3D+t sequence of volumes.
itk::SmartPointer< Self > Pointer
Projection geometry for a source and a 2-D flat panel.
itk::SmartPointer< const Self > ConstPointer
#define itkSetMacro(name, type)