ITK  6.0.0
Insight Toolkit
itkGrayscaleGeodesicErodeImageFilter.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 itkGrayscaleGeodesicErodeImageFilter_h
19#define itkGrayscaleGeodesicErodeImageFilter_h
20
22
23namespace itk
24{
64template <typename TInputImage, typename TOutputImage>
65class ITK_TEMPLATE_EXPORT GrayscaleGeodesicErodeImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
66{
67public:
68 ITK_DISALLOW_COPY_AND_MOVE(GrayscaleGeodesicErodeImageFilter);
69
75
77 using MarkerImageType = TInputImage;
81 using MarkerImagePixelType = typename MarkerImageType::PixelType;
82 using MaskImageType = TInputImage;
86 using MaskImagePixelType = typename MaskImageType::PixelType;
87 using OutputImageType = TOutputImage;
91 using OutputImagePixelType = typename OutputImageType::PixelType;
92
94 static constexpr unsigned int MarkerImageDimension = TInputImage::ImageDimension;
95 static constexpr unsigned int MaskImageDimension = TInputImage::ImageDimension;
96 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
97
99 itkNewMacro(Self);
100
102 itkOverrideGetNameOfClassMacro(GrayscaleGeodesicErodeImageFilter);
103
107 void
109
110 const MarkerImageType *
112
116 void
118
119 const MaskImageType *
121
125 itkSetMacro(RunOneIteration, bool);
126 itkGetConstMacro(RunOneIteration, bool);
127 itkBooleanMacro(RunOneIteration);
132 itkGetConstMacro(NumberOfIterationsUsed, unsigned long);
133
140 itkSetMacro(FullyConnected, bool);
141 itkGetConstReferenceMacro(FullyConnected, bool);
142 itkBooleanMacro(FullyConnected);
145#ifdef ITK_USE_CONCEPT_CHECKING
146 // Begin concept checking
150 // End concept checking
151#endif
152
153protected:
156 void
157 PrintSelf(std::ostream & os, Indent indent) const override;
158
165 void
167
172 void
173 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
174
181 void
182 GenerateData() override;
183
188 void
189 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
190
191
192private:
193 bool m_RunOneIteration{};
194 unsigned long m_NumberOfIterationsUsed{};
195 bool m_FullyConnected{};
196}; // end of class
197} // end namespace itk
198
199#ifndef ITK_MANUAL_INSTANTIATION
200# include "itkGrayscaleGeodesicErodeImageFilter.hxx"
201#endif
202
203#endif
Base class for all data objects in ITK.
typename MarkerImageType::PixelType MarkerImagePixelType
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
const MarkerImageType * GetMarkerImage()
~GrayscaleGeodesicErodeImageFilter() override=default
void EnlargeOutputRequestedRegion(DataObject *) override
typename MarkerImageType::RegionType MarkerImageRegionType
typename MarkerImageType::ConstPointer MarkerImageConstPointer
void SetMaskImage(const MaskImageType *)
void SetMarkerImage(const MarkerImageType *)
void PrintSelf(std::ostream &os, Indent indent) const override
const MaskImageType * GetMaskImage()
typename MaskImageType::ConstPointer MaskImageConstPointer
typename OutputImageType::ConstPointer OutputImageConstPointer
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:50
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....