RTK  2.1.0
Reconstruction Toolkit
rtkDeconstructSoftThresholdReconstructImageFilter.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 rtkDeconstructSoftThresholdReconstructImageFilter_h
20 #define rtkDeconstructSoftThresholdReconstructImageFilter_h
21 
22 // ITK includes
23 #include "itkMacro.h"
24 #include "itkProgressReporter.h"
25 
26 // rtk includes
30 
31 namespace rtk
32 {
33 
46 template <class TImage>
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(DeconstructSoftThresholdReconstructImageFilter);
51 
57 
59  itkNewMacro(Self);
60 
63 
65  static constexpr unsigned int ImageDimension = TImage::ImageDimension;
66 
68  using InputImageType = typename Superclass::InputImageType;
70  using InputImagePointer = typename Superclass::InputImagePointer;
72  using InputImageConstPointer = typename Superclass::InputImageConstPointer;
73  using PixelType = typename TImage::PixelType;
74  using InternalPixelType = typename TImage::InternalPixelType;
75 
80 
82  void
83  SetNumberOfLevels(unsigned int levels);
84 
86  itkGetMacro(Order, unsigned int);
87  itkSetMacro(Order, unsigned int);
89 
91  itkGetMacro(Threshold, float);
92  itkSetMacro(Threshold, float);
94 
95 protected:
98  void
99  PrintSelf(std::ostream & os, itk::Indent indent) const override;
100 
102  void
103  GenerateData() override;
104 
106  void
107  GenerateOutputInformation() override;
108 
109  void
110  GenerateInputRequestedRegion() override;
111 
112 private:
113  unsigned int m_Order;
114  float m_Threshold;
116 
119  std::vector<typename SoftThresholdFilterType::Pointer>
120  m_SoftTresholdFilters; // Holds an array of soft threshold filters
121 };
122 
123 } // namespace rtk
124 
125 // Include CXX
126 #ifndef rtk_MANUAL_INSTANTIATION
127 # include "rtkDeconstructSoftThresholdReconstructImageFilter.hxx"
128 #endif
129 
130 #endif
typename OutputImageType::Pointer OutputImagePointer
An image filter that reconstructs an image using Daubechies wavelets.
#define itkSetMacro(name, type)
TOutputImage OutputImageType
An image filter that deconstructs an image using Daubechies wavelets.
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Deconstructs an image, soft thresholds its wavelets coefficients, then reconstructs.
std::vector< typename SoftThresholdFilterType::Pointer > m_SoftTresholdFilters