19#ifndef rtkConjugateGradientConeBeamReconstructionFilter_h
20#define rtkConjugateGradientConeBeamReconstructionFilter_h
109template <
typename TOutputImage,
typename TSingleComponentImage = TOutputImage,
typename TWeightsImage = TOutputImage>
164 std::is_same_v<TSingleComponentImage, TOutputImage>,
165 CudaDisplacedDetectorImageFilter,
167 using ConstantImageSourceType =
typename std::conditional_t<!std::is_same_v<TOutputImage, CPUOutputImageType> &&
168 std::is_same_v<TSingleComponentImage, TOutputImage>,
169 CudaConstantVolumeSource,
172 std::is_same_v<TSingleComponentImage, TOutputImage>,
173 CudaConstantVolumeSource,
184 typename TSingleComponentImage::ConstPointer
191 itkGetMacro(NumberOfIterations,
int);
195 itkGetMacro(DisableDisplacedDetectorFilter,
bool);
200 itkGetMacro(Tikhonov,
float);
206 itkGetMacro(Gamma,
float);
209 itkGetMacro(CudaConjugateGradient,
bool);
252 typename TOutputImage::ConstPointer
254 typename TOutputImage::ConstPointer
256 typename TWeightsImage::ConstPointer
258 typename TSingleComponentImage::ConstPointer
261 template <
typename ImageType,
263 ImageType> * =
nullptr>
267 template <
typename ImageType,
269 ImageType> * =
nullptr>
292#ifndef ITK_MANUAL_INSTANTIATION
293# include "rtkConjugateGradientConeBeamReconstructionFilter.hxx"
Abstraction of the Events used to communicating among filters and with GUIs.
Templated n-dimensional image class.
Implements iterations tracking for a filter.
Pixel-wise multiplication of two images.
SmartPointer< Self > Pointer
Base class for most ITK classes.
Implements transparent reference counting.
Compute min, max, variance and mean of an Image.
itk::SmartPointer< Self > Pointer
Multiplies matrix by vector.
MultiplyFilterType::Pointer m_MultiplyOutputFilter
ConstantImageSourceType::Pointer m_ConstantImageSource
BackProjectionImageFilter< TOutputImage, TOutputImage > BackProjectionFilterType
itk::StatisticsImageFilter< TSingleComponentImage > StatisticsFilterType
ReconstructionConjugateGradientOperator< TOutputImage, TSingleComponentImage, TWeightsImage > CGOperatorFilterType
bool m_CudaConjugateGradient
BackProjectionImageFilter< TImage, TImage >::Pointer m_BackProjectionFilter
bool m_DisableDisplacedDetectorFilter
TOutputImage::ConstPointer GetInputVolume()
typename ForwardProjectionFilterType::Pointer ForwardProjectionFilterPointer
TSingleComponentImage::ConstPointer GetLocalRegularizationWeights()
ConjugateGradientConeBeamReconstructionFilter()
DisplacedDetectorFilterType::Pointer m_DisplacedDetectorFilter
typename itk::Image< typename TOutputImage::PixelType, TOutputImage::ImageDimension > CPUOutputImageType
BackProjectionImageFilter< TImage, TImage >::Pointer m_BackProjectionFilterForB
void SetLocalRegularizationWeights(const TSingleComponentImage *weights)
itk::MultiplyImageFilter< TOutputImage, TSingleComponentImage, TOutputImage > MultiplyFilterType
void GenerateOutputInformation() override
ForwardProjectionImageFilter< TOutputImage, TOutputImage > ForwardProjectionFilterType
ConstantImageSource< TOutputImage > ConstantImageSourceType
TWeightsImage::ConstPointer GetInputWeights()
void SetInputWeights(const TWeightsImage *weights)
typename ConjugateGradientFilterType::Pointer ConjugateGradientFilterPointer
typename TOutputImage::Pointer OutputImagePointer
IterativeConeBeamReconstructionFilter< TOutputImage > Superclass
void SetInputProjectionStack(const TOutputImage *projs)
MultiplyFilterType::Pointer m_MultiplyProjectionsFilter
~ConjugateGradientConeBeamReconstructionFilter() override=default
void SetSupportMask(const TSingleComponentImage *SupportMask)
void GenerateInputRequestedRegion() override
void ReportProgress(itk::Object *, const itk::EventObject &)
itk::IterationReporter m_IterationReporter
CGOperatorFilterType::Pointer m_CGOperator
itk::SmartPointer< Self > Pointer
ThreeDCircularProjectionGeometry::ConstPointer m_Geometry
typename Superclass::BackProjectionType BackProjectionType
ConstantImageSource< TWeightsImage > ConstantWeightSourceType
void SetInputVolume(const TOutputImage *vol)
BlockDiagonalMatrixVectorMultiplyImageFilter< TOutputImage, TWeightsImage > MatrixVectorMultiplyFilterType
typename Superclass::ForwardProjectionType ForwardProjectionType
itk::DivideOrZeroOutImageFilter< TOutputImage > DivideFilterType
ForwardProjectionImageFilter< TImage, TImage >::Pointer m_ForwardProjectionFilter
DisplacedDetectorImageFilter< TWeightsImage > DisplacedDetectorFilterType
ConjugateGradientFilterPointer InstantiateCudaConjugateGradientImageFilter()
itk::StatisticsImageFilter< TOutputImage > StatisticsImageFilterType
typename std::conditional_t< std::is_same_v< TSingleComponentImage, TOutputImage >, PlainMultiplyFilterType, MatrixVectorMultiplyFilterType > MultiplyWithWeightsFilterType
MultiplyWithWeightsFilterType::Pointer m_MultiplyWithWeightsFilter
void GenerateData() override
itk::MultiplyImageFilter< TOutputImage, TOutputImage, TOutputImage > PlainMultiplyFilterType
TOutputImage::ConstPointer GetInputProjectionStack()
ConjugateGradientImageFilter< TOutputImage > ConjugateGradientFilterType
ConjugateGradientFilterPointer m_ConjugateGradientFilter
MultiplyFilterType::Pointer m_MultiplyVolumeFilter
ConjugateGradientConeBeamReconstructionFilter Self
TSingleComponentImage::ConstPointer GetSupportMask()
void VerifyInputInformation() const override
void VerifyPreconditions() const override
Solves AX = B by conjugate gradient.
itk::SmartPointer< Self > Pointer
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
std::enable_if_t<!std::is_same_v< CPUImageType, ImageType > && std::is_same_v< typename itk::PixelTraits< typename ImageType::PixelType >::ValueType, float > &&(itk::PixelTraits< typename ImageType::PixelType >::Dimension==1|| itk::PixelTraits< typename ImageType::PixelType >::Dimension==2|| itk::PixelTraits< typename ImageType::PixelType >::Dimension==3)> EnableCudaScalarAndVectorType
IterativeConeBeamReconstructionFilter()
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
std::enable_if_t< std::is_same_v< CPUImageType, ImageType >|| !std::is_same_v< typename itk::PixelTraits< typename ImageType::PixelType >::ValueType, float >||(itk::PixelTraits< typename ImageType::PixelType >::Dimension !=1 && itk::PixelTraits< typename ImageType::PixelType >::Dimension !=2 && itk::PixelTraits< typename ImageType::PixelType >::Dimension !=3)> DisableCudaScalarAndVectorType
Implements the operator A used in conjugate gradient reconstruction.
itk::SmartPointer< Self > Pointer
Projection geometry for a source and a 2-D flat panel.
itk::SmartPointer< const Self > ConstPointer
#define itkSetMacro(name, type)