ITK  5.3.0
Insight Toolkit
itkRegionGrowImageFilter.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  * 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 itkRegionGrowImageFilter_h
19 #define itkRegionGrowImageFilter_h
20 
21 #include "itkObject.h"
22 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
84 template <typename TInputImage, typename TOutputImage>
85 class ITK_TEMPLATE_EXPORT RegionGrowImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
86 {
87 public:
88  ITK_DISALLOW_COPY_AND_MOVE(RegionGrowImageFilter);
89 
95 
98 
100  using InputImageType = TInputImage;
101  using InputImagePointer = typename TInputImage::Pointer;
102  using InputImageConstPointer = typename TInputImage::ConstPointer;
103 
105  using InputImagePixelType = typename TInputImage::PixelType;
106 
108  using OutputImageType = TOutputImage;
109  using OutputImagePointer = typename TOutputImage::Pointer;
110 
112  using OutputImagePixelType = typename TOutputImage::PixelType;
113 
116 
118  itkSetMacro(GridSize, GridSizeType);
119  itkGetConstReferenceMacro(GridSize, GridSizeType);
121 
123  itkSetMacro(MaximumNumberOfRegions, unsigned int);
124  itkGetConstReferenceMacro(MaximumNumberOfRegions, unsigned int);
126 
128  virtual void
129  ApplyRegionGrowImageFilter() = 0;
130 
132  virtual void
133  MergeRegions() = 0;
134 
135 protected:
137  ~RegionGrowImageFilter() override = default;
138  void
139  PrintSelf(std::ostream & os, Indent indent) const override;
140 
141 private:
143 
145 }; // class RegionGrowImageFilter
146 } // namespace itk
147 
148 #ifndef ITK_MANUAL_INSTANTIATION
149 # include "itkRegionGrowImageFilter.hxx"
150 #endif
151 
152 #endif
itk::ImageSource::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition: itkImageSource.h:91
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ImageToImageFilter::InputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Definition: itkImageToImageFilter.h:133
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::ImageToImageFilter::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition: itkImageToImageFilter.h:130
itk::RegionGrowImageFilter::m_MaximumNumberOfRegions
unsigned int m_MaximumNumberOfRegions
Definition: itkRegionGrowImageFilter.h:142
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itkImageToImageFilter.h
itk::RegionGrowImageFilter::GridSizeType
typename TInputImage::SizeType GridSizeType
Definition: itkRegionGrowImageFilter.h:115
itk::RegionGrowImageFilter
Base class for RegionGrowImageFilter object.
Definition: itkRegionGrowImageFilter.h:85
itkObject.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::RegionGrowImageFilter::m_GridSize
GridSizeType m_GridSize
Definition: itkRegionGrowImageFilter.h:144
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itk::ImageSource::OutputImagePixelType
typename OutputImageType::PixelType OutputImagePixelType
Definition: itkImageSource.h:93
itk::ImageToImageFilter::InputImageConstPointer
typename InputImageType::ConstPointer InputImageConstPointer
Definition: itkImageToImageFilter.h:131
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90