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: 2004/11/04 20:40:34 $
00007   Version:   $Revision: 1.19 $
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 Object Superclass;
00086   typedef SmartPointer<Self>  Pointer;
00087   typedef SmartPointer<const Self>  ConstPointer;
00088 
00090   itkNewMacro(Self);
00091 
00093   itkTypeMacro(RegionGrowImageFilter,Object);
00094 
00096   typedef TInputImage                           InputImageType;
00097   typedef typename TInputImage::Pointer         InputImagePointer;
00098   typedef typename TInputImage::ConstPointer    InputImageConstPointer;
00099 
00101   typedef typename TInputImage::PixelType       InputImagePixelType;
00102 
00104   typedef TOutputImage                          OutputImageType;
00105   typedef typename TOutputImage::Pointer        OutputImagePointer;
00106 
00108   typedef typename TOutputImage::PixelType OutputImagePixelType;
00109 
00111   typedef typename TInputImage::SizeType        GridSizeType;
00112 
00114   itkSetMacro(GridSize, GridSizeType);
00115   itkGetConstReferenceMacro(GridSize, GridSizeType);
00116 
00118   itkSetMacro(MaximumNumberOfRegions, unsigned int);
00119   itkGetConstReferenceMacro(MaximumNumberOfRegions, unsigned int);
00120 
00122   virtual void ApplyRegionGrowImageFilter(){};
00123 
00125   virtual void MergeRegions(){};
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 
00140 }; // class RegionGrowImageFilter
00141 
00142 } // namespace itk
00143 
00144 #ifndef ITK_MANUAL_INSTANTIATION
00145 #include "itkRegionGrowImageFilter.txx"
00146 #endif
00147 
00148 
00149 #endif

Generated at Wed May 24 23:58:19 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000