Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
itkTotalVariationDenoisingImageFilter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef __itkTotalVariationDenoisingImageFilter_h
14 #define __itkTotalVariationDenoisingImageFilter_h
15 
16 #include "itkCastImageFilter.h"
17 #include "itkImage.h"
18 #include "itkImageToImageFilter.h"
20 
21 namespace itk
22 {
35  template <class TInputImage, class TOutputImage>
36  class TotalVariationDenoisingImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
37  {
38  public:
40  itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
41  itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
42 
44  typedef TInputImage InputImageType;
45  typedef TOutputImage OutputImageType;
46 
49  typedef ImageToImageFilter<InputImageType, OutputImageType> Superclass;
52 
54  itkFactorylessNewMacro(Self);
55  itkCloneMacro(Self);
56 
58  itkTypeMacro(TotalVariationDenoisingImageFilter, ImageToImageFilter);
59 
61  typedef typename InputImageType::PixelType InputPixelType;
62  typedef typename OutputImageType::PixelType OutputPixelType;
63 
64  typedef typename InputImageType::RegionType InputImageRegionType;
65  typedef typename OutputImageType::RegionType OutputImageRegionType;
66 
67  typedef typename InputImageType::SizeType InputSizeType;
68 
70 
71  typedef typename itk::CastImageFilter<TInputImage, TOutputImage> CastType;
72 
73  itkSetMacro(Lambda, double);
74  itkGetMacro(Lambda, double);
75 
76  itkSetMacro(NumberIterations, int);
77  itkGetMacro(NumberIterations, int);
78 
79  protected:
82  void PrintSelf(std::ostream &os, Indent indent) const override;
83 
84  void GenerateData() override;
85 
86  double m_Lambda;
87 
89 
90  private:
91  TotalVariationDenoisingImageFilter(const Self &); // purposely not implemented
92  void operator=(const Self &); // purposely not implemented
93  };
94 
95 } // end namespace itk
96 
97 #ifndef ITK_MANUAL_INSTANTIATION
98 #include "itkTotalVariationDenoisingImageFilter.txx"
99 #endif
100 
101 #endif //__itkTotalVariationDenoisingImageFilter__
itk::TotalVariationDenoisingImageFilter::InputImageType
TInputImage InputImageType
Definition: itkTotalVariationDenoisingImageFilter.h:44
itk::TotalVariationDenoisingImageFilter::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::TotalVariationDenoisingImageFilter::~TotalVariationDenoisingImageFilter
~TotalVariationDenoisingImageFilter() override
Definition: itkTotalVariationDenoisingImageFilter.h:81
itk::TotalVariationDenoisingImageFilter::GenerateData
void GenerateData() override
itk::TotalVariationSingleIterationImageFilter
Applies a total variation denoising filter to an image.
Definition: itkTotalVariationSingleIterationImageFilter.h:34
itk::TotalVariationDenoisingImageFilter::CastType
itk::CastImageFilter< TInputImage, TOutputImage > CastType
Definition: itkTotalVariationDenoisingImageFilter.h:71
itk::TotalVariationDenoisingImageFilter::Superclass
ImageToImageFilter< InputImageType, OutputImageType > Superclass
Definition: itkTotalVariationDenoisingImageFilter.h:49
itk::TotalVariationDenoisingImageFilter::InputPixelType
InputImageType::PixelType InputPixelType
Definition: itkTotalVariationDenoisingImageFilter.h:58
itk::TotalVariationDenoisingImageFilter::InputSizeType
InputImageType::SizeType InputSizeType
Definition: itkTotalVariationDenoisingImageFilter.h:67
itk::TotalVariationDenoisingImageFilter::Pointer
SmartPointer< Self > Pointer
Definition: itkTotalVariationDenoisingImageFilter.h:50
itk::TotalVariationDenoisingImageFilter::m_NumberIterations
int m_NumberIterations
Definition: itkTotalVariationDenoisingImageFilter.h:88
itk::SmartPointer< Self >
itk::TotalVariationDenoisingImageFilter::itkStaticConstMacro
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
itk::TotalVariationDenoisingImageFilter
Applies a total variation denoising filter to an image.
Definition: itkTotalVariationDenoisingImageFilter.h:36
itk::TotalVariationDenoisingImageFilter::SingleIterationFilterType
TotalVariationSingleIterationImageFilter< TOutputImage, TOutputImage > SingleIterationFilterType
Definition: itkTotalVariationDenoisingImageFilter.h:69
itk::TotalVariationDenoisingImageFilter::ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkTotalVariationDenoisingImageFilter.h:51
itk::TotalVariationDenoisingImageFilter::InputImageRegionType
InputImageType::RegionType InputImageRegionType
Definition: itkTotalVariationDenoisingImageFilter.h:64
itk::TotalVariationDenoisingImageFilter::Self
TotalVariationDenoisingImageFilter Self
Definition: itkTotalVariationDenoisingImageFilter.h:48
itk::TotalVariationDenoisingImageFilter::m_Lambda
double m_Lambda
Definition: itkTotalVariationDenoisingImageFilter.h:86
itk
SET FUNCTIONS.
Definition: itkIntelligentBinaryClosingFilter.h:30
itk::TotalVariationDenoisingImageFilter::TotalVariationDenoisingImageFilter
TotalVariationDenoisingImageFilter()
itk::TotalVariationDenoisingImageFilter::OutputImageType
TOutputImage OutputImageType
Definition: itkTotalVariationDenoisingImageFilter.h:45
itk::TotalVariationDenoisingImageFilter::OutputPixelType
OutputImageType::PixelType OutputPixelType
Definition: itkTotalVariationDenoisingImageFilter.h:62
itkTotalVariationSingleIterationImageFilter.h
itk::TotalVariationDenoisingImageFilter::OutputImageRegionType
OutputImageType::RegionType OutputImageRegionType
Definition: itkTotalVariationDenoisingImageFilter.h:65