ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkParabolicErodeDilateImageFilter.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 itkParabolicErodeDilateImageFilter_h
19#define itkParabolicErodeDilateImageFilter_h
20
22#include "itkNumericTraits.h"
23#include "itkProgressReporter.h"
24
25namespace itk
26{
81
82template <typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
83class ITK_TEMPLATE_EXPORT ParabolicErodeDilateImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
84{
85public:
86 ITK_DISALLOW_COPY_AND_MOVE(ParabolicErodeDilateImageFilter);
87
93
95 itkNewMacro(Self);
96
98 itkOverrideGetNameOfClassMacro(ParabolicErodeDilateImageFilter);
99
101 using InputImageType = TInputImage;
102 using OutputImageType = TOutputImage;
103 using PixelType = typename TInputImage::PixelType;
106 using OutputPixelType = typename TOutputImage::PixelType;
107
109 using InputImagePointer = typename TInputImage::Pointer;
110 using InputImageConstPointer = typename TInputImage::ConstPointer;
111 using InputSizeType = typename TInputImage::SizeType;
112 using OutputSizeType = typename TOutputImage::SizeType;
113
114 using OutputIndexType = typename OutputImageType::IndexType;
115
118
120 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
121 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
122 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
123
124 using OutputImageRegionType = typename OutputImageType::RegionType;
128
130 // using RealImageType = typename Image<InternalRealType,
131 // Self::ImageDimension >;
132
133 // set all of the scales the same
134 void
136
138 itkGetConstReferenceMacro(Scale, RadiusType);
139
141 {
142 NOCHOICE = 0, // decices based on scale - experimental
143 CONTACTPOINT = 1, // sometimes faster at low scale
144 INTERSECTION = 2 // default
145 };
146
151
153 itkGetConstReferenceMacro(ParabolicAlgorithm, int);
154
159 itkSetMacro(UseImageSpacing, bool);
160 itkGetConstReferenceMacro(UseImageSpacing, bool);
161 itkBooleanMacro(UseImageSpacing);
163
165
167
168protected:
171 void
172 PrintSelf(std::ostream & os, Indent indent) const override;
173
175 void
176 GenerateData() override;
177
178 unsigned int
179 SplitRequestedRegion(unsigned int i, unsigned int num, OutputImageRegionType & splitRegion) override;
180
181 void
182 ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId) override;
183
184 void
186
187 // Override since the filter produces the entire dataset.
188 void
190
193
194private:
196
197 unsigned int m_CurrentDimension;
198};
199} // end namespace itk
200
201#ifndef ITK_MANUAL_INSTANTIATION
202# include "itkParabolicErodeDilateImageFilter.hxx"
203#endif
204
205#endif
Base class for all data objects in ITK.
Simulate a standard C array with copy semantics.
Control indentation during Print() invocation.
Definition itkIndent.h:53
typename itk::FixedArray< ScalarRealType, TInputImage::ImageDimension > RadiusType
void SetScale(ScalarRealType scale)
void GenerateInputRequestedRegion() override
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
unsigned int SplitRequestedRegion(unsigned int i, unsigned int num, OutputImageRegionType &splitRegion) override
void EnlargeOutputRequestedRegion(DataObject *output) override
void PrintSelf(std::ostream &os, Indent indent) const override
~ParabolicErodeDilateImageFilter() override=default
Implements transparent reference counting.
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType
Definition itkIntTypes.h:98
#define itkSetMacro(name, type)