ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkWaveletFrequencyInverseUndecimated.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 itkWaveletFrequencyInverseUndecimated_h
19#define itkWaveletFrequencyInverseUndecimated_h
20
24#include <complex>
25#include <itkFixedArray.h>
27
28namespace itk
29{
36template <typename TInputImage, typename TOutputImage, typename TWaveletFilterBank>
37class WaveletFrequencyInverseUndecimated : public ImageToImageFilter<TInputImage, TOutputImage>
38{
39public:
40 ITK_DISALLOW_COPY_AND_MOVE(WaveletFrequencyInverseUndecimated);
41
47
54
55 using InputsType = typename std::vector<InputImagePointer>;
56 // using InputsType = typename itk::VectorContainer<InputImagePointer>;
57
58 using WaveletFilterBankType = TWaveletFilterBank;
59 using WaveletFilterBankPointer = typename WaveletFilterBankType::Pointer;
60 using WaveletFunctionType = typename WaveletFilterBankType::WaveletFunctionType;
61 using FunctionValueType = typename WaveletFilterBankType::FunctionValueType;
62
64 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
65
67 itkNewMacro(Self);
68
70 itkOverrideGetNameOfClassMacro(WaveletFrequencyInverseUndecimated);
71
73 void
74 SetLevels(unsigned int n);
75 itkGetMacro(Levels, unsigned int);
76
78 void
79 SetHighPassSubBands(unsigned int n);
80 itkGetMacro(HighPassSubBands, unsigned int);
81
83 itkGetMacro(TotalInputs, unsigned int);
84
87 itkGetConstReferenceMacro(ScaleFactor, unsigned int);
88
92 itkGetConstReferenceMacro(ApplyReconstructionFactors, bool);
93 itkSetMacro(ApplyReconstructionFactors, bool);
94 itkBooleanMacro(ApplyReconstructionFactors);
95
98 itkGetConstReferenceMacro(UseWaveletFilterBankPyramid, bool);
99 itkSetMacro(UseWaveletFilterBankPyramid, bool);
100 itkBooleanMacro(UseWaveletFilterBankPyramid);
101
106 void
107 SetWaveletFilterBankPyramid(const InputsType & filterBankPyramid)
108 {
109 this->m_WaveletFilterBankPyramid = filterBankPyramid;
110 }
111
112 using IndexPairType = std::pair<unsigned int, unsigned int>;
115 InputIndexToLevelBand(unsigned int linear_index);
116
117 void
118 SetInputs(const InputsType & inputs);
119
120 void
121 SetInputLowPass(const InputImagePointer & input_low_pass);
122
123 void
125
126protected:
129 void
130 PrintSelf(std::ostream & os, Indent indent) const override;
131
133 void
134 GenerateData() override;
135
136 /************ Information *************/
137
146 void
148
154 void
156
164 void
166
169 void
170 VerifyInputInformation() const override {};
171
172private:
173 unsigned int m_Levels{ 1 };
174 unsigned int m_HighPassSubBands{ 1 };
175 unsigned int m_TotalInputs{ 0 };
176 unsigned int m_ScaleFactor{ 2 };
181};
182} // end namespace itk
183#ifndef ITK_MANUAL_INSTANTIATION
184# include "itkWaveletFrequencyInverseUndecimated.hxx"
185#endif
186
187#endif
Base class for all data objects in ITK.
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.
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
void SetInputs(const InputsType &inputs)
void SetWaveletFilterBankPyramid(const InputsType &filterBankPyramid)
typename std::vector< InputImagePointer > InputsType
typename WaveletFilterBankType::WaveletFunctionType WaveletFunctionType
void GenerateOutputRequestedRegion(DataObject *output) override
typename WaveletFilterBankType::Pointer WaveletFilterBankPointer
typename Superclass::OutputImagePointer OutputImagePointer
void SetHighPassSubBands(unsigned int n)
typename WaveletFilterBankType::FunctionValueType FunctionValueType
typename Superclass::InputImagePointer InputImagePointer
void SetInputsHighPass(const InputsType &inputs)
IndexPairType InputIndexToLevelBand(unsigned int linear_index)
void SetInputLowPass(const InputImagePointer &input_low_pass)
~WaveletFrequencyInverseUndecimated() override=default
typename Superclass::InputImageConstPointer InputImageConstPointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)