RTK  1.4.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 {
106 template< typename TOutputImage, typename TGradientImage =
108  TOutputImage::ImageDimension > >
110  public rtk::DenoisingBPDQImageFilter< TOutputImage, TGradientImage >
111 {
112 public:
113 
119 
121  itkNewMacro(Self)
122 
123 
125 
128 
129  void SetDimensionsProcessed(bool* arg);
130 
133 
134 protected:
135  TotalVariationDenoisingBPDQImageFilter();
136  virtual ~TotalVariationDenoisingBPDQImageFilter() ITK_OVERRIDE {}
137 
138  void GenerateOutputInformation() ITK_OVERRIDE;
139 
143  {
144  return dynamic_cast<typename Superclass::ThresholdFilterType*>(this->m_ThresholdFilter.GetPointer());
145  }
147 
148 private:
149  TotalVariationDenoisingBPDQImageFilter(const Self&); //purposely not implemented
150  void operator=(const Self&); //purposely not implemented
151 };
152 
153 } // end namespace itk
154 
155 #ifndef ITK_MANUAL_INSTANTIATION
156 #include "rtkTotalVariationDenoisingBPDQImageFilter.hxx"
157 #endif
158 
159 #endif //__rtkTotalVariationDenoisingBPDQImageFilter__
rtk::DenoisingBPDQImageFilter< TOutputImage, TGradientImage > Superclass
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.
itk::InPlaceImageFilter< TGradientImage > ThresholdFilterType