ITK  6.0.0
Insight Toolkit
itkGrayscaleGeodesicDilateImageFilter.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 itkGrayscaleGeodesicDilateImageFilter_h
19#define itkGrayscaleGeodesicDilateImageFilter_h
20
22
23namespace itk
24{
63template <typename TInputImage, typename TOutputImage>
64class ITK_TEMPLATE_EXPORT GrayscaleGeodesicDilateImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
65{
66public:
67 ITK_DISALLOW_COPY_AND_MOVE(GrayscaleGeodesicDilateImageFilter);
68
74
76 using MarkerImageType = TInputImage;
80 using MarkerImagePixelType = typename MarkerImageType::PixelType;
81 using MaskImageType = TInputImage;
85 using MaskImagePixelType = typename MaskImageType::PixelType;
86 using OutputImageType = TOutputImage;
90 using OutputImagePixelType = typename OutputImageType::PixelType;
91
93 static constexpr unsigned int MarkerImageDimension = TInputImage::ImageDimension;
94 static constexpr unsigned int MaskImageDimension = TInputImage::ImageDimension;
95 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
96
98 itkNewMacro(Self);
99
101 itkOverrideGetNameOfClassMacro(GrayscaleGeodesicDilateImageFilter);
102
106 void
108
109 const MarkerImageType *
111
115 void
117
118 const MaskImageType *
120
124 itkSetMacro(RunOneIteration, bool);
125 itkGetConstMacro(RunOneIteration, bool);
126 itkBooleanMacro(RunOneIteration);
131 itkGetConstMacro(NumberOfIterationsUsed, unsigned long);
132
139 itkSetMacro(FullyConnected, bool);
140 itkGetConstReferenceMacro(FullyConnected, bool);
141 itkBooleanMacro(FullyConnected);
144#ifdef ITK_USE_CONCEPT_CHECKING
145 // Begin concept checking
149 // End concept checking
150#endif
151
152protected:
155 void
156 PrintSelf(std::ostream & os, Indent indent) const override;
157
164 void
166
171 void
172 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
173
180 void
181 GenerateData() override;
182
187 void
188 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
189
190
191private:
192 bool m_RunOneIteration{};
193 unsigned long m_NumberOfIterationsUsed{};
194 bool m_FullyConnected{};
195}; // end of class
196} // end namespace itk
197
198#ifndef ITK_MANUAL_INSTANTIATION
199# include "itkGrayscaleGeodesicDilateImageFilter.hxx"
200#endif
201
202#endif
Base class for all data objects in ITK.
void PrintSelf(std::ostream &os, Indent indent) const override
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
typename MarkerImageType::RegionType MarkerImageRegionType
typename OutputImageType::ConstPointer OutputImageConstPointer
const MarkerImageType * GetMarkerImage()
~GrayscaleGeodesicDilateImageFilter() override=default
void EnlargeOutputRequestedRegion(DataObject *) override
typename MaskImageType::ConstPointer MaskImageConstPointer
void SetMarkerImage(const MarkerImageType *)
void SetMaskImage(const MaskImageType *)
const MaskImageType * GetMaskImage()
typename MarkerImageType::ConstPointer MarkerImageConstPointer
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....