19 #ifndef rtkTotalVariationDenoiseSequenceImageFilter_h 20 #define rtkTotalVariationDenoiseSequenceImageFilter_h 78 template <
typename TImageSequence>
94 #ifdef itkOverrideGetNameOfClassMacro 102 itkGetMacro(Gamma,
double);
106 itkGetMacro(NumberOfIterations,
int);
110 SetDimensionsProcessed(
bool * arg);
115 typedef typename std::conditional<
116 std::is_same<TImageSequence, CPUImageSequenceType>::value,
117 itk::Image<
typename TImageSequence::PixelType, TImageSequence::ImageDimension - 1>,
118 itk::CudaImage<
typename TImageSequence::PixelType, TImageSequence::ImageDimension - 1>>::type
ImageType;
119 typedef typename std::conditional<std::is_same<TImageSequence, CPUImageSequenceType>::value,
137 GenerateData()
override;
140 GenerateOutputInformation()
override;
142 GenerateInputRequestedRegion()
override;
155 double m_Gamma{ 1. };
156 int m_NumberOfIterations{ 1 };
157 bool m_DimensionsProcessed[ImageType::ImageDimension];
162 #ifndef ITK_MANUAL_INSTANTIATION 163 # include "rtkTotalVariationDenoiseSequenceImageFilter.hxx" PasteFilterType::Pointer m_PasteFilter
Generate an n-dimensional image with constant pixel values.
ConstantImageSourceType::Pointer m_ConstantSource
Applies 3D total variation denoising to a 3D + time sequence of images.
Applies a total variation denoising, only alm_SingularValueThresholdFilterong the dimensions specifie...
#define itkSetMacro(name, type)
typename itk::Image< typename TImageSequence::PixelType, TImageSequence::ImageDimension > CPUImageSequenceType
TImageSequence::RegionType m_ExtractAndPasteRegion
TVDenoisingFilterType::Pointer m_TVDenoisingFilter
CastFilterType::Pointer m_CastFilter
ExtractFilterType::Pointer m_ExtractFilter