Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkRegionGrowImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkRegionGrowImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-26 21:45:57 $
00007   Version:   $Revision: 1.21 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkRegionGrowImageFilter_h
00018 #define __itkRegionGrowImageFilter_h
00019 
00020 #include "itkObject.h"
00021 #include "itkImageToImageFilter.h"
00022 
00023 namespace itk
00024 {
00025 
00078 template <class TInputImage, class TOutputImage>
00079 class ITK_EXPORT RegionGrowImageFilter :
00080     public ImageToImageFilter<TInputImage,TOutputImage>
00081 {
00082 public:
00084   typedef RegionGrowImageFilter                        Self;
00085   typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
00086   typedef SmartPointer<Self>                           Pointer;
00087   typedef SmartPointer<const Self>                     ConstPointer;
00088 
00090   itkTypeMacro(RegionGrowImageFilter,ImageToImageFilter);
00091 
00093   typedef TInputImage                           InputImageType;
00094   typedef typename TInputImage::Pointer         InputImagePointer;
00095   typedef typename TInputImage::ConstPointer    InputImageConstPointer;
00096 
00098   typedef typename TInputImage::PixelType       InputImagePixelType;
00099 
00101   typedef TOutputImage                          OutputImageType;
00102   typedef typename TOutputImage::Pointer        OutputImagePointer;
00103 
00105   typedef typename TOutputImage::PixelType OutputImagePixelType;
00106 
00108   typedef typename TInputImage::SizeType        GridSizeType;
00109 
00111   itkSetMacro(GridSize, GridSizeType);
00112   itkGetConstReferenceMacro(GridSize, GridSizeType);
00114 
00116   itkSetMacro(MaximumNumberOfRegions, unsigned int);
00117   itkGetConstReferenceMacro(MaximumNumberOfRegions, unsigned int);
00119 
00121   virtual void ApplyRegionGrowImageFilter() = 0;
00122 
00124   virtual void MergeRegions() = 0;
00125 
00126 protected:
00127   RegionGrowImageFilter();
00128   ~RegionGrowImageFilter();
00129   void PrintSelf(std::ostream& os, Indent indent) const;
00130 
00131 private:
00132   RegionGrowImageFilter(const Self&); //purposely not implemented
00133   void operator=(const Self&); //purposely not implemented
00134 
00135   unsigned int    m_MaximumNumberOfRegions;
00136 
00137   GridSizeType    m_GridSize;
00138 
00139 }; // class RegionGrowImageFilter
00140 
00141 } // namespace itk
00142 
00143 #ifndef ITK_MANUAL_INSTANTIATION
00144 #include "itkRegionGrowImageFilter.txx"
00145 #endif
00146 
00147 
00148 #endif
00149 

Generated at Tue Sep 15 04:40:46 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000