ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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 * 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 rtkDeconstructSoftThresholdReconstructImageFilter_h
20#define rtkDeconstructSoftThresholdReconstructImageFilter_h
21
22// ITK includes
23#include "itkMacro.h"
24#include "itkProgressReporter.h"
25
26// rtk includes
30
31namespace rtk
32{
33
46template <class TImage>
48 : public itk::ImageToImageFilter<TImage, TImage>
49{
50public:
51 ITK_DISALLOW_COPY_AND_MOVE(DeconstructSoftThresholdReconstructImageFilter);
52
58
60 itkNewMacro(Self);
61
63 itkOverrideGetNameOfClassMacro(DeconstructSoftThresholdReconstructImageFilter);
64
66 static constexpr unsigned int ImageDimension = TImage::ImageDimension;
67
74 using PixelType = typename TImage::PixelType;
75 using InternalPixelType = typename TImage::InternalPixelType;
76
81
83 void
84 SetNumberOfLevels(unsigned int levels);
85
87 itkGetMacro(Order, unsigned int);
88 itkSetMacro(Order, unsigned int);
89
91 itkGetMacro(Threshold, float);
92 itkSetMacro(Threshold, float);
93
94protected:
97 void
98 PrintSelf(std::ostream & os, itk::Indent indent) const override;
99
101 void
102 GenerateData() override;
103
105 void
107
108 void
110
111private:
112 unsigned int m_Order;
115
118 std::vector<typename SoftThresholdFilterType::Pointer>
119 m_SoftTresholdFilters; // Holds an array of soft threshold filters
120};
121
122} // namespace rtk
123
124// Include CXX
125#ifndef rtk_MANUAL_INSTANTIATION
126# include "rtkDeconstructSoftThresholdReconstructImageFilter.hxx"
127#endif
128
129#endif
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::ConstPointer InputImageConstPointer
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
An image filter that deconstructs an image using Daubechies wavelets.
void PrintSelf(std::ostream &os, itk::Indent indent) const override
rtk::SoftThresholdImageFilter< InputImageType, InputImageType > SoftThresholdFilterType
An image filter that reconstructs an image using Daubechies wavelets.
#define itkSetMacro(name, type)