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 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
63 template <typename TInputImage, typename TOutputImage>
64 class ITK_TEMPLATE_EXPORT GrayscaleGeodesicDilateImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
65 {
66 public:
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
107  SetMarkerImage(const MarkerImageType *);
108 
109  const MarkerImageType *
110  GetMarkerImage();
111 
115  void
116  SetMaskImage(const MaskImageType *);
117 
118  const MaskImageType *
119  GetMaskImage();
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 
152 protected:
154  ~GrayscaleGeodesicDilateImageFilter() override = default;
155  void
156  PrintSelf(std::ostream & os, Indent indent) const override;
157 
164  void
165  GenerateInputRequestedRegion() override;
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 
191 private:
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
itk::GrayscaleGeodesicDilateImageFilter::MarkerImagePointer
typename MarkerImageType::Pointer MarkerImagePointer
Definition: itkGrayscaleGeodesicDilateImageFilter.h:77
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itk::GrayscaleGeodesicDilateImageFilter::MaskImagePixelType
typename MaskImageType::PixelType MaskImagePixelType
Definition: itkGrayscaleGeodesicDilateImageFilter.h:85
ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkAddImageFilter.h:94
itk::GrayscaleGeodesicDilateImageFilter::MaskImageConstPointer
typename MaskImageType::ConstPointer MaskImageConstPointer
Definition: itkGrayscaleGeodesicDilateImageFilter.h:83
itk::ImageSource::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition: itkImageSource.h:91
itk::GrayscaleGeodesicDilateImageFilter::OutputImageConstPointer
typename OutputImageType::ConstPointer OutputImageConstPointer
Definition: itkGrayscaleGeodesicDilateImageFilter.h:88
itk::GrayscaleGeodesicDilateImageFilter::MarkerImageConstPointer
typename MarkerImageType::ConstPointer MarkerImageConstPointer
Definition: itkGrayscaleGeodesicDilateImageFilter.h:78
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::GrayscaleGeodesicDilateImageFilter::MarkerImagePixelType
typename MarkerImageType::PixelType MarkerImagePixelType
Definition: itkGrayscaleGeodesicDilateImageFilter.h:80
itk::GrayscaleGeodesicDilateImageFilter::MaskImageType
TInputImage MaskImageType
Definition: itkGrayscaleGeodesicDilateImageFilter.h:81
itk::GrayscaleGeodesicDilateImageFilter::MaskImagePointer
typename MaskImageType::Pointer MaskImagePointer
Definition: itkGrayscaleGeodesicDilateImageFilter.h:82
itk::Concept::SameDimension
Definition: itkConceptChecking.h:696
itk::ImageToImageFilter
Base class for filters that take an image as input and produce an image as output.
Definition: itkImageToImageFilter.h:108
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::GrayscaleGeodesicDilateImageFilter::MarkerImageRegionType
typename MarkerImageType::RegionType MarkerImageRegionType
Definition: itkGrayscaleGeodesicDilateImageFilter.h:79
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::GrayscaleGeodesicDilateImageFilter::MarkerImageType
TInputImage MarkerImageType
Definition: itkGrayscaleGeodesicDilateImageFilter.h:76
itk::GrayscaleGeodesicDilateImageFilter
Geodesic grayscale dilation of an image.
Definition: itkGrayscaleGeodesicDilateImageFilter.h:64
itkImageToImageFilter.h
itk::Concept::Comparable
Definition: itkConceptChecking.h:331
itk::ImageSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:139
itk::ImageSource::OutputImagePixelType
typename OutputImageType::PixelType OutputImagePixelType
Definition: itkImageSource.h:93
itk::Concept::Convertible
Definition: itkConceptChecking.h:216
itk::GrayscaleGeodesicDilateImageFilter::MaskImageRegionType
typename MaskImageType::RegionType MaskImageRegionType
Definition: itkGrayscaleGeodesicDilateImageFilter.h:84
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293