ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkDaubechiesWaveletsConvolutionImageFilter.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 rtkDaubechiesWaveletsConvolutionImageFilter_h
20#define rtkDaubechiesWaveletsConvolutionImageFilter_h
21
22// Includes
25
26#include "rtkMacro.h"
27
28namespace rtk
29{
30
44template <typename TImage>
45class ITK_TEMPLATE_EXPORT DaubechiesWaveletsConvolutionImageFilter : public itk::ImageToImageFilter<TImage, TImage>
46{
47public:
48 ITK_DISALLOW_COPY_AND_MOVE(DaubechiesWaveletsConvolutionImageFilter);
49
50 enum Pass
51 {
52 Low = 0x0, // Indicates to return the low-pass filter coefficients
53 High = 0x1 // Indicates to return the high-pass filter coefficients
54 };
55
56 enum Type
57 {
58 Deconstruct = 0x0, // Indicates to deconstruct the image into levels/bands
59 Reconstruct = 0x1 // Indicates to reconstruct the image from levels/bands
60 };
61
62
68
70 using OutputImageType = TImage;
71
73 using OutputImagePixelType = typename TImage::PixelType;
74
76 using OutputImageRegionType = typename TImage::RegionType;
77
80
82 itkOverrideGetNameOfClassMacro(DaubechiesWaveletsConvolutionImageFilter);
83
85 itkNewMacro(Self);
86
89
91 void
93
95 void
97
99 void
100 PrintSelf(std::ostream & os, itk::Indent i) const override;
101
103 itkSetMacro(Order, unsigned int);
104 itkGetConstMacro(Order, unsigned int);
105
108 itkGetMacro(Pass, PassVector);
109
110protected:
113
114 using CoefficientVector = std::vector<typename TImage::PixelType>;
115
119
121 void
122 GenerateData() override;
123
125 void
127
128private:
138
140 unsigned int m_Order{ 3 };
141
143 PassVector m_Pass{ PassVector(typename PassVector::ComponentType(0)) };
144
147};
148
149} // namespace rtk
150
151// Include CXX
152#ifndef rtk_MANUAL_INSTANTIATION
153# include "rtkDaubechiesWaveletsConvolutionImageFilter.hxx"
154#endif
155
156#endif
Convolve a given image with an arbitrary image kernel.
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
CoefficientVector GenerateCoefficientsLowpassDeconstruct()
void PrintSelf(std::ostream &os, itk::Indent i) const override
CoefficientVector GenerateCoefficientsHighpassReconstruct()
typename itk::ConvolutionImageFilter< TImage > ConvolutionFilterType
CoefficientVector GenerateCoefficientsLowpassReconstruct()
CoefficientVector GenerateCoefficientsHighpassDeconstruct()
typename itk::Vector< typename Self::Pass, TImage::ImageDimension > PassVector
#define itkSetMacro(name, type)