ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkRegionGrowImageFilter.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 itkRegionGrowImageFilter_h
19 #define itkRegionGrowImageFilter_h
20 
21 #include "itkObject.h"
22 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
79 template< typename TInputImage, typename TOutputImage >
80 class ITK_TEMPLATE_EXPORT RegionGrowImageFilter:
81  public ImageToImageFilter< TInputImage, TOutputImage >
82 {
83 public:
84  ITK_DISALLOW_COPY_AND_ASSIGN(RegionGrowImageFilter);
85 
91 
94 
96  using InputImageType = TInputImage;
97  using InputImagePointer = typename TInputImage::Pointer;
98  using InputImageConstPointer = typename TInputImage::ConstPointer;
99 
101  using InputImagePixelType = typename TInputImage::PixelType;
102 
104  using OutputImageType = TOutputImage;
105  using OutputImagePointer = typename TOutputImage::Pointer;
106 
108  using OutputImagePixelType = typename TOutputImage::PixelType;
109 
112 
114  itkSetMacro(GridSize, GridSizeType);
115  itkGetConstReferenceMacro(GridSize, GridSizeType);
117 
119  itkSetMacro(MaximumNumberOfRegions, unsigned int);
120  itkGetConstReferenceMacro(MaximumNumberOfRegions, unsigned int);
122 
124  virtual void ApplyRegionGrowImageFilter() = 0;
125 
127  virtual void MergeRegions() = 0;
128 
129 protected:
131  ~RegionGrowImageFilter() override = default;
132  void PrintSelf(std::ostream & os, Indent indent) const override;
133 
134 private:
136 
138 }; // class RegionGrowImageFilter
139 } // namespace itk
140 
141 #ifndef ITK_MANUAL_INSTANTIATION
142 #include "itkRegionGrowImageFilter.hxx"
143 #endif
144 
145 #endif
typename OutputImageType::Pointer OutputImagePointer
typename TInputImage::SizeType GridSizeType
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 InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
TOutputImage OutputImageType
Base class for RegionGrowImageFilter object.
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
typename InputImageType::ConstPointer InputImageConstPointer