RTK  2.5.0
Reconstruction Toolkit
rtkTotalVariationDenoisingBPDQImageFilter.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 rtkTotalVariationDenoisingBPDQImageFilter_h
20 #define rtkTotalVariationDenoisingBPDQImageFilter_h
21 
24 
26 
27 namespace rtk
28 {
109 template <typename TOutputImage,
110  typename TGradientImage =
112  TOutputImage::ImageDimension>>
113 class ITK_TEMPLATE_EXPORT TotalVariationDenoisingBPDQImageFilter
114  : public rtk::DenoisingBPDQImageFilter<TOutputImage, TGradientImage>
115 {
116 public:
117  ITK_DISALLOW_COPY_AND_MOVE(TotalVariationDenoisingBPDQImageFilter);
118 
124 
126  itkNewMacro(Self);
127 
129 #ifdef itkOverrideGetNameOfClassMacro
130  itkOverrideGetNameOfClassMacro(TotalVariationDenoisingBPDQImageFilter);
131 #else
133 #endif
134 
135 
139 
140  void
141  SetDimensionsProcessed(bool * arg);
142 
144  void
145  SetBoundaryConditionToPeriodic();
146 
147 protected:
149  ~TotalVariationDenoisingBPDQImageFilter() override = default;
150 
151  void
152  GenerateOutputInformation() override;
153 
156  typename Superclass::ThresholdFilterType *
158  {
159  return dynamic_cast<typename Superclass::ThresholdFilterType *>(this->m_ThresholdFilter.GetPointer());
160  }
161 };
163 
164 } // namespace rtk
165 
166 #ifndef ITK_MANUAL_INSTANTIATION
167 # include "rtkTotalVariationDenoisingBPDQImageFilter.hxx"
168 #endif
169 
170 #endif //__rtkTotalVariationDenoisingBPDQImageFilter__
Base class for Basis Pursuit DeQuantization denoising filters.
Applies a total variation denoising, only alm_SingularValueThresholdFilterong the dimensions specifie...
Superclass::ThresholdFilterType * GetThresholdFilter() override
Performs thresholding on the norm of each vector-valued input pixel.