RTK  2.1.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  * http://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 TotalVariationDenoisingBPDQImageFilter : public rtk::DenoisingBPDQImageFilter<TOutputImage, TGradientImage>
114 {
115 public:
116  ITK_DISALLOW_COPY_AND_ASSIGN(TotalVariationDenoisingBPDQImageFilter);
117 
123 
125  itkNewMacro(Self);
126 
129 
132 
133  void
134  SetDimensionsProcessed(bool * arg);
135 
137  void
139 
140 protected:
142  ~TotalVariationDenoisingBPDQImageFilter() override = default;
143 
144  void
145  GenerateOutputInformation() override;
146 
151  {
152  return dynamic_cast<typename Superclass::ThresholdFilterType *>(this->m_ThresholdFilter.GetPointer());
153  }
154 };
156 
157 } // namespace rtk
158 
159 #ifndef ITK_MANUAL_INSTANTIATION
160 # include "rtkTotalVariationDenoisingBPDQImageFilter.hxx"
161 #endif
162 
163 #endif //__rtkTotalVariationDenoisingBPDQImageFilter__
itk::InPlaceImageFilter< TGradientImage > ThresholdFilterType
Base class for Basis Pursuit DeQuantization denoising filters.
~TotalVariationDenoisingBPDQImageFilter() override=default
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.