ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkWaveletFrequencyForwardUndecimated.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 itkWaveletFrequencyForwardUndecimated_h
19#define itkWaveletFrequencyForwardUndecimated_h
20
24#include <complex>
25#include <itkFixedArray.h>
27
28namespace itk
29{
44template <typename TInputImage, typename TOutputImage, typename TWaveletFilterBank>
45class WaveletFrequencyForwardUndecimated : public ImageToImageFilter<TInputImage, TOutputImage>
46{
47public:
48 ITK_DISALLOW_COPY_AND_MOVE(WaveletFrequencyForwardUndecimated);
49
55
62
63 using OutputsType = typename std::vector<OutputImagePointer>;
64 // using OutputsType = typename itk::VectorContainer<OutputImagePointer>;
65
68 using OutputImageRegionType = typename OutputImageType::RegionType;
69
70 using WaveletFilterBankType = TWaveletFilterBank;
71 using WaveletFilterBankPointer = typename WaveletFilterBankType::Pointer;
72 using WaveletFunctionType = typename WaveletFilterBankType::WaveletFunctionType;
73 using FunctionValueType = typename WaveletFilterBankType::FunctionValueType;
74
76 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
77
79 itkNewMacro(Self);
80
82 itkOverrideGetNameOfClassMacro(WaveletFrequencyForwardUndecimated);
83 virtual void
84 SetLevels(unsigned int n);
85
86 itkGetConstReferenceMacro(Levels, unsigned int);
87 virtual void
88 SetHighPassSubBands(unsigned int n);
89
90 itkGetConstReferenceMacro(HighPassSubBands, unsigned int);
91 itkGetConstReferenceMacro(TotalOutputs, unsigned int);
92
95 itkGetConstReferenceMacro(ScaleFactor, unsigned int);
96 // itkSetMacro(ScaleFactor, unsigned int);
97
99 itkGetModifiableObjectMacro(WaveletFilterBank, WaveletFilterBankType);
101 virtual WaveletFunctionType *
103 {
104 return this->GetModifiableWaveletFilterBank()->GetModifiableWaveletFunction();
105 }
106
109 itkSetMacro(StoreWaveletFilterBankPyramid, bool);
110 itkGetMacro(StoreWaveletFilterBankPyramid, bool);
111 itkBooleanMacro(StoreWaveletFilterBankPyramid);
112
113 itkGetMacro(WaveletFilterBankPyramid, OutputsType);
114
119 static unsigned int
120 ComputeMaxNumberOfLevels(const typename InputImageType::SizeType & input_size, const unsigned int scaleFactor = 2);
121
125 using IndexPairType = std::pair<unsigned int, unsigned int>;
131 OutputIndexToLevelBand(unsigned int linear_index);
132
136
139
142
144 GetOutputsHighPassByLevel(unsigned int level);
145
146protected:
149 void
150 PrintSelf(std::ostream & os, Indent indent) const override;
151
153 void
154 GenerateData() override;
155
156 /************ Information *************/
157
166 void
168
174 void
176
184 void
186
187private:
188 unsigned int m_Levels{ 1 };
189 unsigned int m_HighPassSubBands{ 1 };
190 unsigned int m_TotalOutputs{ 1 };
191 unsigned int m_ScaleFactor{ 2 };
195};
196} // end namespace itk
197#ifndef ITK_MANUAL_INSTANTIATION
198# include "itkWaveletFrequencyForwardUndecimated.hxx"
199#endif
200
201#endif
Base class for all data objects in ITK.
Read-only ImageRegionIterator: ImageRegionConstIterator<TImage> behaves as ImageRegionIterator<const ...
A multi-dimensional iterator templated over image type that walks a region of pixels.
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.
void GenerateOutputRequestedRegion(DataObject *output) override
~WaveletFrequencyForwardUndecimated() override=default
virtual void SetLevels(unsigned int n)
OutputsType GetOutputsHighPassByLevel(unsigned int level)
static unsigned int ComputeMaxNumberOfLevels(const typename InputImageType::SizeType &input_size, const unsigned int scaleFactor=2)
virtual WaveletFilterBankType * GetModifiableWaveletFilterBank()
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetHighPassSubBands(unsigned int n)
IndexPairType OutputIndexToLevelBand(unsigned int linear_index)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)