ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkWaveletFrequencyFilterBankGenerator.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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#ifndef itkWaveletFrequencyFilterBankGenerator_h
19#define itkWaveletFrequencyFilterBankGenerator_h
20
22#include <complex>
25
26namespace itk
27{
50template <typename TOutputImage,
51 typename TWaveletFunction,
52 typename TFrequencyRegionIterator = FrequencyFFTLayoutImageRegionIteratorWithIndex<TOutputImage>>
54{
55public:
56 ITK_DISALLOW_COPY_AND_MOVE(WaveletFrequencyFilterBankGenerator);
57
63
65 itkNewMacro(Self);
66
68 itkOverrideGetNameOfClassMacro(WaveletFrequencyFilterBankGenerator);
69
74 using OutputRegionIterator = TFrequencyRegionIterator;
75 using OutputImageRegionType = typename OutputImageType::RegionType;
77 using WaveletFunctionType = TWaveletFunction;
78 using WaveletFunctionPointer = typename WaveletFunctionType::Pointer;
79 using FunctionValueType = typename WaveletFunctionType::FunctionValueType;
80
81 using OutputsType = typename std::vector<OutputImagePointer>;
82 // using OutputsType = typename itk::VectorContainer<OutputImagePointer>;
83
84 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
85
87 itkGetMacro(HighPassSubBands, unsigned int);
88 void
89 SetHighPassSubBands(unsigned int k);
90
93 itkGetMacro(InverseBank, bool);
94 itkSetMacro(InverseBank, bool);
95 itkBooleanMacro(InverseBank);
96
100 itkGetMacro(Level, unsigned int);
101 virtual void
102 SetLevel(const unsigned int & level)
103 {
104 this->m_Level = level;
105 this->m_LevelFactor = std::pow(static_cast<double>(this->m_ScaleFactor), static_cast<int>(level));
106 this->Modified();
107 }
108
110 itkGetModifiableObjectMacro(WaveletFunction, WaveletFunctionType);
111
115
118
120 GetOutputSubBand(unsigned int k);
121
125
129
131 itkConceptMacro(OutputPixelTypeIsComplexAndFloatCheck,
133
134protected:
137 void
138 PrintSelf(std::ostream & os, Indent indent) const override;
139
140 void
142 void
144
145private:
146 unsigned int m_HighPassSubBands{ 0 };
147 bool m_InverseBank{ false };
149 unsigned int m_Level{ 0 };
151 unsigned int m_ScaleFactor{ 2 };
153 double m_LevelFactor{ 1 };
154}; // end of class
155} // end namespace itk
156#ifndef ITK_MANUAL_INSTANTIATION
157# include "itkWaveletFrequencyFilterBankGenerator.hxx"
158#endif
159
160#endif
A multi-dimensional iterator templated over image type that walks pixels within a region and is speci...
a Base class for image sources which need to have image size, and other meta-data set.
typename OutputImageType::Pointer OutputImagePointer
Control indentation during Print() invocation.
Definition itkIndent.h:53
virtual void Modified() const
Implements transparent reference counting.
FrequencyFFTLayoutImageRegionIteratorWithIndex< ComplexImageType > OutputRegionIterator
void DynamicThreadedGenerateData(const OutputImageRegionType &threadRegion) override
WaveletFrequencyFilterBankGenerator()
This ensure that OutputPixelType is complex<float||double>
OutputImagePointer GetOutputSubBand(unsigned int k)
~WaveletFrequencyFilterBankGenerator() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)