RTK  2.0.1
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 {
106 template< typename TOutputImage, typename TGradientImage =
108  TOutputImage::ImageDimension > >
110  public rtk::DenoisingBPDQImageFilter< TOutputImage, TGradientImage >
111 {
112 public:
113  ITK_DISALLOW_COPY_AND_ASSIGN(TotalVariationDenoisingBPDQImageFilter);
114 
120 
122  itkNewMacro(Self)
123 
124 
126 
129 
130  void SetDimensionsProcessed(bool* arg);
131 
134 
135 protected:
136  TotalVariationDenoisingBPDQImageFilter();
137  ~TotalVariationDenoisingBPDQImageFilter() override = default;
138 
139  void GenerateOutputInformation() override;
140 
144  {
145  return dynamic_cast<typename Superclass::ThresholdFilterType*>(this->m_ThresholdFilter.GetPointer());
146  }
147 };
149 
150 } // end namespace itk
151 
152 #ifndef ITK_MANUAL_INSTANTIATION
153 #include "rtkTotalVariationDenoisingBPDQImageFilter.hxx"
154 #endif
155 
156 #endif //__rtkTotalVariationDenoisingBPDQImageFilter__
itk::InPlaceImageFilter< TGradientImage > ThresholdFilterType
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.