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

itkGrayscaleFillholeImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGrayscaleFillholeImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/08/23 15:09:01 $
00007   Version:   $Revision: 1.4 $
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 __itkFillholeImageFilter_h
00018 #define __itkFillholeImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk {
00023 
00053 template<class TInputImage, class TOutputImage>
00054 class ITK_EXPORT GrayscaleFillholeImageFilter : 
00055     public ImageToImageFilter<TInputImage, TOutputImage>
00056 {
00057 public:
00059   typedef GrayscaleFillholeImageFilter Self;
00060   typedef ImageToImageFilter<TInputImage, TOutputImage>
00061   Superclass;
00062   typedef SmartPointer<Self>        Pointer;
00063   typedef SmartPointer<const Self>  ConstPointer;
00064 
00066   typedef TInputImage InputImageType;
00067   typedef TOutputImage OutputImageType;
00068   typedef typename InputImageType::Pointer         InputImagePointer;
00069   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00070   typedef typename InputImageType::RegionType      InputImageRegionType;
00071   typedef typename InputImageType::PixelType       InputImagePixelType;
00072   typedef typename OutputImageType::Pointer        OutputImagePointer;
00073   typedef typename OutputImageType::ConstPointer   OutputImageConstPointer;
00074   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00075   typedef typename OutputImageType::PixelType      OutputImagePixelType;
00076   
00078   itkStaticConstMacro(InputImageDimension, unsigned int,
00079                       TInputImage::ImageDimension);
00080   itkStaticConstMacro(OutputImageDimension, unsigned int,
00081                       TOutputImage::ImageDimension);
00082 
00084   itkNewMacro(Self);  
00085 
00087   itkTypeMacro(GrayscaleFillholeImageFilter, 
00088                ImageToImageFilter);
00089   
00094   unsigned long GetNumberOfIterationsUsed()
00095     { itkLegacyBody(itk::GrayscaleFillholeImageFilter::GetNumberOfIterationsUsed, 2.2);
00096       return m_NumberOfIterationsUsed; };
00097 
00104   itkSetMacro(FullyConnected, bool);
00105   itkGetConstReferenceMacro(FullyConnected, bool);
00106   itkBooleanMacro(FullyConnected);
00107   
00108 protected:
00109   GrayscaleFillholeImageFilter();
00110   ~GrayscaleFillholeImageFilter() {};
00111   void PrintSelf(std::ostream& os, Indent indent) const;
00112 
00116   void GenerateInputRequestedRegion() ;
00117 
00119   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00120   
00123   void GenerateData();
00124   
00125 
00126 private:
00127   GrayscaleFillholeImageFilter(const Self&); //purposely not implemented
00128   void operator=(const Self&); //purposely not implemented
00129 
00130   unsigned long m_NumberOfIterationsUsed;
00131 
00132   bool                m_FullyConnected;
00133 } ; // end of class
00134 
00135 } // end namespace itk
00136   
00137 #ifndef ITK_MANUAL_INSTANTIATION
00138 #include "itkGrayscaleFillholeImageFilter.txx"
00139 #endif
00140 
00141 #endif
00142 
00143 

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