ITK  4.3.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< class TInputImage, class TOutputImage >
80 class ITK_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 
109  typedef typename TInputImage::SizeType GridSizeType;
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:
130  void PrintSelf(std::ostream & os, Indent indent) const;
131 
132 private:
133  RegionGrowImageFilter(const Self &); //purposely not implemented
134  void operator=(const Self &); //purposely not implemented
135 
137 
139 }; // class RegionGrowImageFilter
140 } // namespace itk
141 
142 #ifndef ITK_MANUAL_INSTANTIATION
143 #include "itkRegionGrowImageFilter.hxx"
144 #endif
145 
146 #endif
147