18#ifndef rtkFourDROOSTERConeBeamReconstructionFilter_h
19#define rtkFourDROOSTERConeBeamReconstructionFilter_h
206template <
typename VolumeSeriesType,
typename ProjectionStackType>
219 itk::CovariantVector<
typename VolumeSeriesType::ValueType, VolumeSeriesType::ImageDimension - 1>;
227 VolumeSeriesType::ImageDimension>;
230 VolumeSeriesType::ImageDimension>;
233 typename VolumeSeriesType::template RebindImageType<DVFVectorType, VolumeSeriesType::ImageDimension>;
235 typename VolumeSeriesType::template RebindImageType<
DVFVectorType, VolumeSeriesType::ImageDimension - 1>;
240 CudaAverageOutOfROIImageFilter>;
242 std::conditional_t<std::is_same_v<VolumeSeriesType, CPUVolumeSeriesType>,
244 CudaLastDimensionTVDenoisingImageFilter>;
260 typename VolumeSeriesType::ConstPointer
266 typename ProjectionStackType::Pointer
272 typename VolumeType::Pointer
280 typename DVFSequenceImageType::Pointer
282 typename DVFSequenceImageType::Pointer
310 itkGetMacro(DisableDisplacedDetectorFilter,
bool);
314 itkGetMacro(PerformPositivity,
bool);
316 itkGetMacro(PerformMotionMask,
bool);
318 itkGetMacro(PerformTVSpatialDenoising,
bool);
320 itkGetMacro(PerformWaveletsSpatialDenoising,
bool);
322 itkGetMacro(PerformWarping,
bool);
324 itkGetMacro(PerformTVTemporalDenoising,
bool);
326 itkGetMacro(PerformL0TemporalDenoising,
bool);
328 itkGetMacro(PerformTNVDenoising,
bool);
330 itkGetMacro(ComputeInverseWarpingByConjugateGradient,
bool);
332 itkGetMacro(UseNearestNeighborInterpolationInWarping,
bool);
333 itkGetMacro(CudaConjugateGradient,
bool);
338 itkGetMacro(UseCudaCyclicDeformation,
bool);
342 itkGetMacro(GammaTVSpace,
float);
344 itkGetMacro(GammaTVTime,
float);
346 itkGetMacro(GammaTNV,
float);
348 itkGetMacro(LambdaL0Time,
float);
350 itkGetMacro(SoftThresholdWavelets,
float);
352 itkGetMacro(PhaseShift,
float);
355 itkGetMacro(NumberOfLevels,
unsigned int);
359 itkGetMacro(Order,
unsigned int);
364 itkGetMacro(MainLoop_iterations,
int);
366 itkGetMacro(CG_iterations,
int);
368 itkGetMacro(TV_iterations,
int);
370 itkGetMacro(L0_iterations,
int);
469#ifndef ITK_MANUAL_INSTANTIATION
470# include "rtkFourDROOSTERConeBeamReconstructionFilter.hxx"
Pixel-wise addition of two images.
SmartPointer< Self > Pointer
Array2D class representing a 2D array.
A templated class holding a n-Dimensional covariant vector.
SmartPointer< Self > Pointer
Templated n-dimensional image class.
Resample an image via a coordinate transform.
SmartPointer< Self > Pointer
Implements transparent reference counting.
Pixel-wise subtraction of two images.
SmartPointer< Self > Pointer
Set image values to a user-specified value if they are below, above, or outside threshold values.
SmartPointer< Self > Pointer
Averages along the last dimension if the pixel is outside ROI.
itk::SmartPointer< Self > Pointer
Applies 3D Daubechies wavelets denoising to a 3D + time sequence of images.
itk::SmartPointer< Self > Pointer
Implements part of the 4D reconstruction by conjugate gradient.
itk::SmartPointer< Self > Pointer
TemporalTVDenoisingFilterType::Pointer m_TVDenoisingTime
void VerifyPreconditions() const override
DVFSequenceImageType::Pointer GetInverseDisplacementField()
typename VolumeSeriesType::template RebindImageType< CovariantVectorForTemporalGradient, VolumeSeriesType::ImageDimension > TemporalGradientImageType
rtk::LastDimensionL0GradientDenoisingImageFilter< VolumeSeriesType > TemporalL0DenoisingFilterType
typename VolumeSeriesType::template RebindImageType< CovariantVectorForSpatialGradient, VolumeSeriesType::ImageDimension > SpatialGradientImageType
void SetDisplacementField(const DVFSequenceImageType *DVFs)
typename itk::Image< typename VolumeSeriesType::PixelType, VolumeSeriesType::ImageDimension > CPUVolumeSeriesType
itk::CovariantVector< typename VolumeSeriesType::ValueType, 1 > CovariantVectorForTemporalGradient
void GenerateInputRequestedRegion() override
bool m_DimensionsProcessedForTVTime[VolumeSeriesType::ImageDimension]
rtk::DaubechiesWaveletsDenoiseSequenceImageFilter< VolumeSeriesType > SpatialWaveletsDenoisingFilterType
~FourDROOSTERConeBeamReconstructionFilter() override=default
rtk::WarpSequenceImageFilter< VolumeSeriesType, DVFSequenceImageType, VolumeType, DVFImageType > WarpSequenceFilterType
itk::ImageToImageFilter< VolumeSeriesType, VolumeSeriesType >::Pointer m_DownstreamFilter
TNVDenoisingFilterType::Pointer m_TNVDenoising
rtk::TotalNuclearVariationDenoisingBPDQImageFilter< VolumeSeriesType, SpatialGradientImageType > TNVDenoisingFilterType
WarpSequenceFilterType::Pointer m_InverseWarp
void VerifyInputInformation() const override
Verifies that the inputs meta-data is consistent and valid for continued execution of the pipeline,...
ProjectionStackType::Pointer GetInputProjectionStack()
TemporalL0DenoisingFilterType::Pointer m_L0DenoisingTime
FourDCGFilterType::Pointer m_FourDCGFilter
void SetInputProjectionStack(const ProjectionStackType *Projection)
SubtractFilterType::Pointer m_SubtractFilter
bool m_PerformTNVDenoising
rtk::IterativeConeBeamReconstructionFilter< VolumeSeriesType, ProjectionStackType > Superclass
rtk::TotalVariationDenoiseSequenceImageFilter< VolumeSeriesType > SpatialTVDenoisingFilterType
WarpSequenceFilterType::Pointer m_Warp
FourDROOSTERConeBeamReconstructionFilter Self
bool m_UseNearestNeighborInterpolationInWarping
bool m_PerformTVSpatialDenoising
int m_MainLoop_iterations
itk::AddImageFilter< VolumeSeriesType, VolumeSeriesType > AddFilterType
bool m_DisableDisplacedDetectorFilter
ThresholdFilterType::Pointer m_PositivityFilter
rtk::FourDConjugateGradientConeBeamReconstructionFilter< VolumeSeriesType, ProjectionStackType > FourDCGFilterType
void GenerateData() override
bool m_PerformWaveletsSpatialDenoising
void SetInputVolumeSeries(const VolumeSeriesType *VolumeSeries)
void SetMotionMask(const VolumeType *mask)
itk::CovariantVector< typename VolumeSeriesType::ValueType, VolumeSeriesType::ImageDimension - 1 > CovariantVectorForSpatialGradient
bool m_UseCudaCyclicDeformation
bool m_CudaConjugateGradient
FourDROOSTERConeBeamReconstructionFilter()
SpatialTVDenoisingFilterType::Pointer m_TVDenoisingSpace
ProjectionStackType VolumeType
float m_SoftThresholdWavelets
typename Superclass::ForwardProjectionType ForwardProjectionType
VolumeType::Pointer GetMotionMask()
UnwarpSequenceFilterType::Pointer m_Unwarp
unsigned int m_NumberOfLevels
rtk::UnwarpSequenceImageFilter< VolumeSeriesType, DVFSequenceImageType, VolumeType, DVFImageType > UnwarpSequenceFilterType
bool m_DimensionsProcessedForTVSpace[VolumeSeriesType::ImageDimension]
typename VolumeSeriesType::template RebindImageType< DVFVectorType, VolumeSeriesType::ImageDimension - 1 > DVFImageType
itk::ThresholdImageFilter< VolumeSeriesType > ThresholdFilterType
virtual void SetSignal(const std::vector< double > &signal)
virtual void SetWeights(itk::Array2D< float > _arg)
SpatialWaveletsDenoisingFilterType::Pointer m_WaveletsDenoisingSpace
void SetInverseDisplacementField(const DVFSequenceImageType *DVFs)
rtk::TotalVariationDenoisingBPDQImageFilter< VolumeSeriesType, TemporalGradientImageType > TemporalTVDenoisingFilterType
bool m_ComputeInverseWarpingByConjugateGradient
bool m_PerformTVTemporalDenoising
rtk::AverageOutOfROIImageFilter< VolumeSeriesType, VolumeType > AverageOutOfROIFilterType
typename VolumeSeriesType::template RebindImageType< DVFVectorType, VolumeSeriesType::ImageDimension > DVFSequenceImageType
ResampleFilterType::Pointer m_ResampleFilter
itk::SubtractImageFilter< VolumeSeriesType, VolumeSeriesType > SubtractFilterType
bool m_PerformL0TemporalDenoising
CovariantVectorForSpatialGradient DVFVectorType
std::vector< double > m_Signal
VolumeSeriesType::ConstPointer GetInputVolumeSeries()
AverageOutOfROIFilterType::Pointer m_AverageOutOfROIFilter
itk::SmartPointer< Self > Pointer
AddFilterType::Pointer m_AddFilter
itk::ResampleImageFilter< VolumeType, VolumeType > ResampleFilterType
DVFSequenceImageType::Pointer GetDisplacementField()
rtk::ThreeDCircularProjectionGeometry::ConstPointer m_Geometry
typename Superclass::BackProjectionType BackProjectionType
void GenerateOutputInformation() override
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
Denoises along the last dimension, reducing the L0 norm of the gradient.
itk::SmartPointer< Self > Pointer
Projection geometry for a source and a 2-D flat panel.
itk::SmartPointer< const Self > ConstPointer
Performs total nuclear variation denoising.
itk::SmartPointer< Self > Pointer
Applies 3D total variation denoising to a 3D + time sequence of images.
itk::SmartPointer< Self > Pointer
Applies a total variation denoising, only alm_SingularValueThresholdFilterong the dimensions specifie...
itk::SmartPointer< Self > Pointer
Finds the image sequence that, once warped, equals the input image sequence.
itk::SmartPointer< Self > Pointer
Applies an N-D + time Motion Vector Field to an N-D + time sequence of images.
itk::SmartPointer< Self > Pointer
#define itkSetMacro(name, type)