ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkDenoisingBPDQImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright RTK Consortium
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18
19#ifndef rtkDenoisingBPDQImageFilter_h
20#define rtkDenoisingBPDQImageFilter_h
21
24
25#include <itkCastImageFilter.h>
29
30namespace rtk
31{
39
40template <typename TOutputImage, typename TGradientImage>
41class ITK_TEMPLATE_EXPORT DenoisingBPDQImageFilter : public itk::InPlaceImageFilter<TOutputImage, TOutputImage>
42{
43public:
44 ITK_DISALLOW_COPY_AND_MOVE(DenoisingBPDQImageFilter);
45
51
53 itkNewMacro(Self);
54
56 itkOverrideGetNameOfClassMacro(DenoisingBPDQImageFilter);
57
60 typename TOutputImage::ValueType,
61 typename TOutputImage::ValueType,
62 TGradientImage>;
68
69 itkGetMacro(NumberOfIterations, int);
70 itkSetMacro(NumberOfIterations, int);
71
72 itkSetMacro(Gamma, double);
73 itkGetMacro(Gamma, double);
74
75protected:
77 ~DenoisingBPDQImageFilter() override = default;
78
79 void
80 GenerateData() override;
81
82 void
84
85 virtual ThresholdFilterType *
87 {
88 return nullptr;
89 }
90
97
98 double m_Gamma;
99 double m_Beta;
102 bool m_DimensionsProcessed[TOutputImage::ImageDimension];
103
104private:
105 virtual void
107 virtual void
109};
110
111} // namespace rtk
112
113#ifndef ITK_MANUAL_INSTANTIATION
114# include "rtkDenoisingBPDQImageFilter.hxx"
115#endif
116
117#endif //__rtkDenoisingBPDQImageFilter__
Base class for filters that take an image as input and overwrite that image as the output.
Pixel-wise multiplication of two images.
Implements transparent reference counting.
Pixel-wise subtraction of two images.
Computes the backward differences divergence (adjoint of the forward differences gradient) of the inp...
BackwardDifferenceDivergenceImageFilter< TGradientImage, TOutputImage > DivergenceFilterType
virtual ThresholdFilterType * GetThresholdFilter()
DivergenceFilterType::Pointer m_DivergenceFilter
GradientFilterType::Pointer m_GradientFilter
itk::InPlaceImageFilter< TGradientImage > ThresholdFilterType
~DenoisingBPDQImageFilter() override=default
itk::InPlaceImageFilter< TOutputImage, TOutputImage > Superclass
bool m_DimensionsProcessed[TOutputImage::ImageDimension]
MultiplyFilterType::Pointer m_MultiplyFilter
SubtractImageFilterType::Pointer m_SubtractFilter
itk::SubtractImageFilter< TOutputImage > SubtractImageFilterType
itk::SmartPointer< const Self > ConstPointer
SubtractGradientFilterType::Pointer m_SubtractGradientFilter
void GenerateOutputInformation() override
itk::SubtractImageFilter< TGradientImage > SubtractGradientFilterType
itk::MultiplyImageFilter< TOutputImage > MultiplyFilterType
virtual void SetPipelineAfterFirstIteration()
virtual void SetPipelineForFirstIteration()
ForwardDifferenceGradientImageFilter< TOutputImage, typename TOutputImage::ValueType, typename TOutputImage::ValueType, TGradientImage > GradientFilterType
Computes the gradient of an image using forward difference.
#define itkSetMacro(name, type)