ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkGrayscaleGeodesicErodeImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
64 template< typename TInputImage, typename TOutputImage >
65 class ITK_TEMPLATE_EXPORT GrayscaleGeodesicErodeImageFilter:
66  public ImageToImageFilter< TInputImage, TOutputImage >
67 {
68 public:
69  ITK_DISALLOW_COPY_AND_ASSIGN(GrayscaleGeodesicErodeImageFilter);
70 
76 
78  using MarkerImageType = TInputImage;
79  using MarkerImagePointer = typename MarkerImageType::Pointer;
80  using MarkerImageConstPointer = typename MarkerImageType::ConstPointer;
82  using MarkerImagePixelType = typename MarkerImageType::PixelType;
83  using MaskImageType = TInputImage;
84  using MaskImagePointer = typename MaskImageType::Pointer;
85  using MaskImageConstPointer = typename MaskImageType::ConstPointer;
87  using MaskImagePixelType = typename MaskImageType::PixelType;
88  using OutputImageType = TOutputImage;
89  using OutputImagePointer = typename OutputImageType::Pointer;
90  using OutputImageConstPointer = typename OutputImageType::ConstPointer;
92  using OutputImagePixelType = typename OutputImageType::PixelType;
93 
95  static constexpr unsigned int MarkerImageDimension = TInputImage::ImageDimension;
96  static constexpr unsigned int MaskImageDimension = TInputImage::ImageDimension;
97  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
98 
100  itkNewMacro(Self);
101 
105 
109  void SetMarkerImage(const MarkerImageType *);
110 
111  const MarkerImageType * GetMarkerImage();
112 
116  void SetMaskImage(const MaskImageType *);
117 
118  const MaskImageType * GetMaskImage();
119 
123  itkSetMacro(RunOneIteration, bool);
124  itkGetConstMacro(RunOneIteration, bool);
125  itkBooleanMacro(RunOneIteration);
127 
130  itkGetConstMacro(NumberOfIterationsUsed, unsigned long);
131 
138  itkSetMacro(FullyConnected, bool);
139  itkGetConstReferenceMacro(FullyConnected, bool);
140  itkBooleanMacro(FullyConnected);
142 
143 #ifdef ITK_USE_CONCEPT_CHECKING
144  // Begin concept checking
145  itkConceptMacro( SameDimensionCheck,
147  itkConceptMacro( InputComparableCheck,
149  itkConceptMacro( InputConvertibleToOutputCheck,
151  // End concept checking
152 #endif
153 
154 protected:
156  ~GrayscaleGeodesicErodeImageFilter() override = default;
157  void PrintSelf(std::ostream & os, Indent indent) const override;
158 
165  void GenerateInputRequestedRegion() override;
166 
171  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) ) override;
172 
179  void GenerateData() override;
180 
185  void DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
186 
187 
188 private:
192 }; // end of class
193 } // end namespace itk
194 
195 #ifndef ITK_MANUAL_INSTANTIATION
196 #include "itkGrayscaleGeodesicErodeImageFilter.hxx"
197 #endif
198 
199 #endif
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::ConstPointer OutputImageConstPointer
typename MarkerImageType::RegionType MarkerImageRegionType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename MarkerImageType::ConstPointer MarkerImageConstPointer
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
Base class for filters that take an image as input and produce an image as output.
typename MarkerImageType::PixelType MarkerImagePixelType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
Base class for all data objects in ITK.
typename MaskImageType::ConstPointer MaskImageConstPointer