go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkErodeMaskImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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 * http://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 itkErodeMaskImageFilter_h
19#define itkErodeMaskImageFilter_h
20
21#include "itkImageToImageFilter.h"
22#include "itkMultiResolutionPyramidImageFilter.h"
23
24namespace itk
25{
56template <class TImage>
57class ITK_TEMPLATE_EXPORT ErodeMaskImageFilter : public ImageToImageFilter<TImage, TImage>
58{
59public:
61
64 using Superclass = ImageToImageFilter<TImage, TImage>;
65 using Pointer = SmartPointer<Self>;
66 using ConstPointer = SmartPointer<const Self>;
67
69 itkTypeMacro(ErodeMaskImageFilter, ImageToImageFilter);
70
72 itkNewMacro(Self);
73
75 using InputImageType = TImage;
76 using OutputImageType = TImage;
77 using InputImagePointer = typename InputImageType::Pointer;
78 using OutputImagePointer = typename OutputImageType::Pointer;
79 using InputPixelType = typename InputImageType::PixelType;
80 using OutputPixelType = typename OutputImageType::PixelType;
81
83 itkStaticConstMacro(InputImageDimension, unsigned int, InputImageType::ImageDimension);
84 itkStaticConstMacro(OutputImageDimension, unsigned int, OutputImageType::ImageDimension);
85 itkStaticConstMacro(ImageDimension, unsigned int, OutputImageType::ImageDimension);
86
88 using ImagePyramidFilterType = MultiResolutionPyramidImageFilter<InputImageType, OutputImageType>;
89 using ScheduleType = typename ImagePyramidFilterType::ScheduleType;
90
95 virtual void
96 SetSchedule(const ScheduleType & schedule)
97 {
98 this->m_Schedule = schedule;
99 this->Modified();
100 }
101
102
103 itkGetConstReferenceMacro(Schedule, ScheduleType);
104
110 itkSetMacro(IsMovingMask, bool);
111 itkGetConstMacro(IsMovingMask, bool);
112
114 itkSetMacro(ResolutionLevel, unsigned int);
115 itkGetConstMacro(ResolutionLevel, unsigned int);
116
117#ifdef ITK_USE_CONCEPT_CHECKING
119 itkConceptMacro(SameDimensionCheck, (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
121#endif
122
123protected:
126
128 ~ErodeMaskImageFilter() override = default;
129
134 void
135 GenerateData() override;
136
137private:
139 unsigned int m_ResolutionLevel;
141};
142
143} // end namespace itk
144
145#ifndef ITK_MANUAL_INSTANTIATION
146# include "itkErodeMaskImageFilter.hxx"
147#endif
148
149#endif
itkStaticConstMacro(InputImageDimension, unsigned int, InputImageType::ImageDimension)
SmartPointer< const Self > ConstPointer
void GenerateData() override
virtual void SetSchedule(const ScheduleType &schedule)
typename InputImageType::PixelType InputPixelType
itkStaticConstMacro(OutputImageDimension, unsigned int, OutputImageType::ImageDimension)
typename ImagePyramidFilterType::ScheduleType ScheduleType
ImageToImageFilter< TImage, TImage > Superclass
MultiResolutionPyramidImageFilter< InputImageType, OutputImageType > ImagePyramidFilterType
typename OutputImageType::Pointer OutputImagePointer
itkStaticConstMacro(ImageDimension, unsigned int, OutputImageType::ImageDimension)
~ErodeMaskImageFilter() override=default
typename OutputImageType::PixelType OutputPixelType
ITK_DISALLOW_COPY_AND_MOVE(ErodeMaskImageFilter)
typename InputImageType::Pointer InputImagePointer


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo