ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkRegionGrowImageFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkRegionGrowImageFilter_h
00019 #define __itkRegionGrowImageFilter_h
00020 
00021 #include "itkObject.h"
00022 #include "itkImageToImageFilter.h"
00023 
00024 namespace itk
00025 {
00079 template< class TInputImage, class TOutputImage >
00080 class ITK_EXPORT RegionGrowImageFilter:
00081   public ImageToImageFilter< TInputImage, TOutputImage >
00082 {
00083 public:
00085   typedef RegionGrowImageFilter                           Self;
00086   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00087   typedef SmartPointer< Self >                            Pointer;
00088   typedef SmartPointer< const Self >                      ConstPointer;
00089 
00091   itkTypeMacro(RegionGrowImageFilter, ImageToImageFilter);
00092 
00094   typedef TInputImage                        InputImageType;
00095   typedef typename TInputImage::Pointer      InputImagePointer;
00096   typedef typename TInputImage::ConstPointer InputImageConstPointer;
00097 
00099   typedef typename TInputImage::PixelType InputImagePixelType;
00100 
00102   typedef TOutputImage                   OutputImageType;
00103   typedef typename TOutputImage::Pointer OutputImagePointer;
00104 
00106   typedef typename TOutputImage::PixelType OutputImagePixelType;
00107 
00109   typedef typename TInputImage::SizeType GridSizeType;
00110 
00112   itkSetMacro(GridSize, GridSizeType);
00113   itkGetConstReferenceMacro(GridSize, GridSizeType);
00115 
00117   itkSetMacro(MaximumNumberOfRegions, unsigned int);
00118   itkGetConstReferenceMacro(MaximumNumberOfRegions, unsigned int);
00120 
00122   virtual void ApplyRegionGrowImageFilter() = 0;
00123 
00125   virtual void MergeRegions() = 0;
00126 
00127 protected:
00128   RegionGrowImageFilter();
00129   ~RegionGrowImageFilter();
00130   void PrintSelf(std::ostream & os, Indent indent) const;
00131 
00132 private:
00133   RegionGrowImageFilter(const Self &); //purposely not implemented
00134   void operator=(const Self &);        //purposely not implemented
00135 
00136   unsigned int m_MaximumNumberOfRegions;
00137 
00138   GridSizeType m_GridSize;
00139 }; // class RegionGrowImageFilter
00140 } // namespace itk
00141 
00142 #ifndef ITK_MANUAL_INSTANTIATION
00143 #include "itkRegionGrowImageFilter.hxx"
00144 #endif
00145 
00146 #endif
00147