ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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{
62template <typename TInputImage, typename TOutputImage>
63class ITK_TEMPLATE_EXPORT GrayscaleGeodesicErodeImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
64{
65public:
66 ITK_DISALLOW_COPY_AND_MOVE(GrayscaleGeodesicErodeImageFilter);
67
73
75 using MarkerImageType = TInputImage;
76 using MarkerImagePointer = typename MarkerImageType::Pointer;
77 using MarkerImageConstPointer = typename MarkerImageType::ConstPointer;
78 using MarkerImageRegionType = typename MarkerImageType::RegionType;
79 using MarkerImagePixelType = typename MarkerImageType::PixelType;
80 using MaskImageType = TInputImage;
81 using MaskImagePointer = typename MaskImageType::Pointer;
82 using MaskImageConstPointer = typename MaskImageType::ConstPointer;
83 using MaskImageRegionType = typename MaskImageType::RegionType;
84 using MaskImagePixelType = typename MaskImageType::PixelType;
85 using OutputImageType = TOutputImage;
86 using OutputImagePointer = typename OutputImageType::Pointer;
87 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
88 using OutputImageRegionType = typename OutputImageType::RegionType;
89 using OutputImagePixelType = typename OutputImageType::PixelType;
90
92 static constexpr unsigned int MarkerImageDimension = TInputImage::ImageDimension;
93 static constexpr unsigned int MaskImageDimension = TInputImage::ImageDimension;
94 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
95
97 itkNewMacro(Self);
98
100 itkOverrideGetNameOfClassMacro(GrayscaleGeodesicErodeImageFilter);
101
105 void
107
108 const MarkerImageType *
110
114 void
116
117 const MaskImageType *
119
124 itkSetMacro(RunOneIteration, bool);
125 itkGetConstMacro(RunOneIteration, bool);
126 itkBooleanMacro(RunOneIteration);
130 itkGetConstMacro(NumberOfIterationsUsed, unsigned long);
131
139 itkSetMacro(FullyConnected, bool);
140 itkGetConstReferenceMacro(FullyConnected, bool);
141 itkBooleanMacro(FullyConnected);
146
147protected:
150 void
151 PrintSelf(std::ostream & os, Indent indent) const override;
152
159 void
161
166 void
167 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
168
175 void
176 GenerateData() override;
177
182 void
183 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
184
185
186private:
190}; // end of class
191} // end namespace itk
192
193#ifndef ITK_MANUAL_INSTANTIATION
194# include "itkGrayscaleGeodesicErodeImageFilter.hxx"
195#endif
196
197#endif
Base class for all data objects in ITK.
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
const MarkerImageType * GetMarkerImage()
typename OutputImageType::RegionType OutputImageRegionType
~GrayscaleGeodesicErodeImageFilter() override=default
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
void EnlargeOutputRequestedRegion(DataObject *output) override
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....