ITK  4.13.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:
89 
92 
94  typedef TInputImage InputImageType;
95  typedef typename TInputImage::Pointer InputImagePointer;
96  typedef typename TInputImage::ConstPointer InputImageConstPointer;
97 
99  typedef typename TInputImage::PixelType InputImagePixelType;
100 
102  typedef TOutputImage OutputImageType;
103  typedef typename TOutputImage::Pointer OutputImagePointer;
104 
106  typedef typename TOutputImage::PixelType OutputImagePixelType;
107 
110 
112  itkSetMacro(GridSize, GridSizeType);
113  itkGetConstReferenceMacro(GridSize, GridSizeType);
115 
117  itkSetMacro(MaximumNumberOfRegions, unsigned int);
118  itkGetConstReferenceMacro(MaximumNumberOfRegions, unsigned int);
120 
122  virtual void ApplyRegionGrowImageFilter() = 0;
123 
125  virtual void MergeRegions() = 0;
126 
127 protected:
129  ~RegionGrowImageFilter() ITK_OVERRIDE;
130  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
131 
132 private:
133  ITK_DISALLOW_COPY_AND_ASSIGN(RegionGrowImageFilter);
134 
135  unsigned int m_MaximumNumberOfRegions;
136 
137  GridSizeType m_GridSize;
138 }; // class RegionGrowImageFilter
139 } // namespace itk
140 
141 #ifndef ITK_MANUAL_INSTANTIATION
142 #include "itkRegionGrowImageFilter.hxx"
143 #endif
144 
145 #endif
ImageToImageFilter< TInputImage, TOutputImage > Superclass
TInputImage::PixelType InputImagePixelType
TOutputImage::Pointer OutputImagePointer
SmartPointer< const Self > ConstPointer
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
TInputImage::ConstPointer InputImageConstPointer
TOutputImage::PixelType OutputImagePixelType
TInputImage::Pointer InputImagePointer