RTK  2.6.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  itkOverrideGetNameOfClassMacro(TotalVariationDenoisingBPDQImageFilter);
130 
134 
135  void
136  SetDimensionsProcessed(bool * arg);
137 
139  void
140  SetBoundaryConditionToPeriodic();
141 
142 protected:
144  ~TotalVariationDenoisingBPDQImageFilter() override = default;
145 
146  void
147  GenerateOutputInformation() override;
148 
151  typename Superclass::ThresholdFilterType *
153  {
154  return dynamic_cast<typename Superclass::ThresholdFilterType *>(this->m_ThresholdFilter.GetPointer());
155  }
156 };
158 
159 } // namespace rtk
160 
161 #ifndef ITK_MANUAL_INSTANTIATION
162 # include "rtkTotalVariationDenoisingBPDQImageFilter.hxx"
163 #endif
164 
165 #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.