ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkMultiResolutionPyramidImageFilter.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 itkMultiResolutionPyramidImageFilter_h
19#define itkMultiResolutionPyramidImageFilter_h
20
22#include "itkArray2D.h"
23
24namespace itk
25{
108template <typename TInputImage, typename TOutputImage>
109class ITK_TEMPLATE_EXPORT MultiResolutionPyramidImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
110{
111public:
112 ITK_DISALLOW_COPY_AND_MOVE(MultiResolutionPyramidImageFilter);
113
119
121 itkNewMacro(Self);
122
124 itkOverrideGetNameOfClassMacro(MultiResolutionPyramidImageFilter);
125
128
130 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
131 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
132
134 using typename Superclass::InputImageType;
135 using typename Superclass::OutputImageType;
136 using typename Superclass::InputImagePointer;
137 using typename Superclass::OutputImagePointer;
139
146 virtual void
147 SetNumberOfLevels(unsigned int num);
148
150 itkGetConstMacro(NumberOfLevels, unsigned int);
151
158 virtual void
159 SetSchedule(const ScheduleType & schedule);
160
162 itkGetConstReferenceMacro(Schedule, ScheduleType);
163
168 virtual void
169 SetStartingShrinkFactors(unsigned int factor);
170
171 virtual void
172 SetStartingShrinkFactors(const unsigned int * factors);
173
175 const unsigned int *
177
181 static bool
183
190 void
192
197 void
200
207 void
209
210 itkSetMacro(MaximumError, double);
211 itkGetConstReferenceMacro(MaximumError, double);
212
213 itkSetMacro(UseShrinkImageFilter, bool);
214 itkGetConstMacro(UseShrinkImageFilter, bool);
215 itkBooleanMacro(UseShrinkImageFilter);
216
219
220protected:
223 void
224 PrintSelf(std::ostream & os, Indent indent) const override;
225
227 void
228 GenerateData() override;
229
231
232 unsigned int m_NumberOfLevels{};
234
236};
237} // namespace itk
238
239#ifndef ITK_MANUAL_INSTANTIATION
240# include "itkMultiResolutionPyramidImageFilter.hxx"
241#endif
242
243#endif
Array2D class representing a 2D array.
Definition itkArray2D.h:43
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:50
virtual void SetStartingShrinkFactors(const unsigned int *factors)
void GenerateOutputRequestedRegion(DataObject *refOutput) override
virtual void SetSchedule(const ScheduleType &schedule)
~MultiResolutionPyramidImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
const unsigned int * GetStartingShrinkFactors() const
virtual void SetNumberOfLevels(unsigned int num)
virtual void SetStartingShrinkFactors(unsigned int factor)
static bool IsScheduleDownwardDivisible(const ScheduleType &schedule)
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....