ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkGrayscaleGeodesicDilateImageFilter.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 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:
65  public ImageToImageFilter< TInputImage, TOutputImage >
66 {
67 public:
68  ITK_DISALLOW_COPY_AND_ASSIGN(GrayscaleGeodesicDilateImageFilter);
69 
75 
77  using MarkerImageType = TInputImage;
78  using MarkerImagePointer = typename MarkerImageType::Pointer;
79  using MarkerImageConstPointer = typename MarkerImageType::ConstPointer;
81  using MarkerImagePixelType = typename MarkerImageType::PixelType;
82  using MaskImageType = TInputImage;
83  using MaskImagePointer = typename MaskImageType::Pointer;
84  using MaskImageConstPointer = typename MaskImageType::ConstPointer;
86  using MaskImagePixelType = typename MaskImageType::PixelType;
87  using OutputImageType = TOutputImage;
88  using OutputImagePointer = typename OutputImageType::Pointer;
89  using OutputImageConstPointer = typename OutputImageType::ConstPointer;
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 
104 
108  void SetMarkerImage(const MarkerImageType *);
109 
110  const MarkerImageType * GetMarkerImage();
111 
115  void SetMaskImage(const MaskImageType *);
116 
117  const MaskImageType * GetMaskImage();
118 
122  itkSetMacro(RunOneIteration, bool);
123  itkGetConstMacro(RunOneIteration, bool);
124  itkBooleanMacro(RunOneIteration);
126 
129  itkGetConstMacro(NumberOfIterationsUsed, unsigned long);
130 
137  itkSetMacro(FullyConnected, bool);
138  itkGetConstReferenceMacro(FullyConnected, bool);
139  itkBooleanMacro(FullyConnected);
141 
142 #ifdef ITK_USE_CONCEPT_CHECKING
143  // Begin concept checking
144  itkConceptMacro( SameDimensionCheck,
146  itkConceptMacro( InputComparableCheck,
148  itkConceptMacro( InputConvertibleToOutputCheck,
150  // End concept checking
151 #endif
152 
153 protected:
155  ~GrayscaleGeodesicDilateImageFilter() override = default;
156  void PrintSelf(std::ostream & os, Indent indent) const override;
157 
164  void GenerateInputRequestedRegion() override;
165 
170  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) ) override;
171 
178  void GenerateData() override;
179 
184  void DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
185 
186 
187 private:
191 }; // end of class
192 } // end namespace itk
193 
194 #ifndef ITK_MANUAL_INSTANTIATION
195 #include "itkGrayscaleGeodesicDilateImageFilter.hxx"
196 #endif
197 
198 #endif
typename OutputImageType::Pointer OutputImagePointer
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 OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename MarkerImageType::ConstPointer MarkerImageConstPointer
typename OutputImageType::ConstPointer OutputImageConstPointer
Base class for filters that take an image as input and produce an image as output.
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