ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkWaveletFrequencyInverse.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 itkWaveletFrequencyInverse_h
19#define itkWaveletFrequencyInverse_h
20
24#include <complex>
25#include <itkFixedArray.h>
29
30namespace itk
31{
38template <typename TInputImage,
39 typename TOutputImage,
40 typename TWaveletFilterBank,
41 typename TFrequencyExpandFilterType = FrequencyExpandImageFilter<TInputImage>>
42// FrequencyExpandViaInverseFFTImageFilter<TInputImage> >
43class WaveletFrequencyInverse : public ImageToImageFilter<TInputImage, TOutputImage>
44{
45public:
46 ITK_DISALLOW_COPY_AND_MOVE(WaveletFrequencyInverse);
47
53
60
61 using InputsType = typename std::vector<InputImagePointer>;
62 // using InputsType = typename itk::VectorContainer<InputImagePointer>;
63
64 using WaveletFilterBankType = TWaveletFilterBank;
65 using WaveletFilterBankPointer = typename WaveletFilterBankType::Pointer;
66 using WaveletFunctionType = typename WaveletFilterBankType::WaveletFunctionType;
67 using FunctionValueType = typename WaveletFilterBankType::FunctionValueType;
68
69 using FrequencyExpandFilterType = TFrequencyExpandFilterType;
70
72 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
73
75 itkNewMacro(Self);
76
78 itkOverrideGetNameOfClassMacro(WaveletFrequencyInverse);
79
81 void
82 SetLevels(unsigned int n);
83 itkGetMacro(Levels, unsigned int);
84
86 void
87 SetHighPassSubBands(unsigned int n);
88 itkGetMacro(HighPassSubBands, unsigned int);
89
91 itkGetMacro(TotalInputs, unsigned int);
92
95 itkGetConstReferenceMacro(ScaleFactor, unsigned int);
96
100 itkGetConstReferenceMacro(ApplyReconstructionFactors, bool);
101 itkSetMacro(ApplyReconstructionFactors, bool);
102 itkBooleanMacro(ApplyReconstructionFactors);
103
106 itkGetConstReferenceMacro(UseWaveletFilterBankPyramid, bool);
107 itkSetMacro(UseWaveletFilterBankPyramid, bool);
108 itkBooleanMacro(UseWaveletFilterBankPyramid);
109
114 void
115 SetWaveletFilterBankPyramid(const InputsType & filterBankPyramid)
116 {
117 this->m_WaveletFilterBankPyramid = filterBankPyramid;
118 }
119
120 using IndexPairType = std::pair<unsigned int, unsigned int>;
123 InputIndexToLevelBand(unsigned int linear_index);
124
125 void
126 SetInputs(const InputsType & inputs);
127
128 void
129 SetInputLowPass(const InputImagePointer & input_low_pass);
130
131 void
133
134protected:
136 ~WaveletFrequencyInverse() override = default;
137 void
138 PrintSelf(std::ostream & os, Indent indent) const override;
139
141 void
142 GenerateData() override;
143
144 /************ Information *************/
145
154 void
156
162 void
164
172 void
174
177 void
178 VerifyInputInformation() const override {};
179
180private:
181 unsigned int m_Levels{ 1 };
182 unsigned int m_HighPassSubBands{ 1 };
183 unsigned int m_TotalInputs{ 0 };
184 unsigned int m_ScaleFactor{ 2 };
189};
190} // end namespace itk
191#ifndef ITK_MANUAL_INSTANTIATION
192# include "itkWaveletFrequencyInverse.hxx"
193#endif
194
195#endif
Base class for all data objects in ITK.
Expand the size of an image in the frequency domain by an integer factor in each dimension.
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
IndexPairType InputIndexToLevelBand(unsigned int linear_index)
void SetWaveletFilterBankPyramid(const InputsType &filterBankPyramid)
~WaveletFrequencyInverse() override=default
void GenerateOutputInformation() override
void PrintSelf(std::ostream &os, Indent indent) const override
void SetHighPassSubBands(unsigned int n)
void SetInputLowPass(const InputImagePointer &input_low_pass)
void GenerateOutputRequestedRegion(DataObject *output) override
void SetLevels(unsigned int n)
void SetInputsHighPass(const InputsType &inputs)
void SetInputs(const InputsType &inputs)
void GenerateInputRequestedRegion() override
void GenerateData() override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)