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

itkBinaryDilateImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBinaryDilateImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/02/02 03:01:39 $
00007   Version:   $Revision: 1.8 $
00008 
00009   Copyright (c) 2002 Insight 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 __itkBinaryDilateImageFilter_h
00018 #define __itkBinaryDilateImageFilter_h
00019 
00020 #include "itkMorphologyImageFilter.h"
00021 
00022 namespace itk {
00023 
00066 template<class TInputImage, class TOutputImage, class TKernel>
00067 class ITK_EXPORT BinaryDilateImageFilter : 
00068   public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00069 {
00070 public:
00072   typedef BinaryDilateImageFilter Self;
00073   typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00074     Superclass;
00075   typedef SmartPointer<Self>        Pointer;
00076   typedef SmartPointer<const Self>  ConstPointer;
00077   
00079   itkNewMacro(Self);  
00080 
00082   itkTypeMacro(BinaryDilateImageFilter, MorphologyImageFilter);
00083   
00085   typedef typename Superclass::PixelType PixelType;
00086 
00088   typedef ConstNeighborhoodIterator<TInputImage> 
00089     NeighborhoodIteratorType ;
00090   typedef ConstSmartNeighborhoodIterator<TInputImage> 
00091     SmartNeighborhoodIteratorType ;
00092 
00094   typedef TKernel KernelType;
00095   
00097   typedef typename KernelType::ConstIterator KernelIteratorType ;
00098  
00101   itkSetMacro(DilateValue, PixelType);
00102 
00105   itkGetMacro(DilateValue, PixelType);
00106   
00107 protected:
00108   BinaryDilateImageFilter();
00109   ~BinaryDilateImageFilter() {};
00110   void PrintSelf(std::ostream& os, Indent indent) const;
00111 
00119   PixelType Evaluate(const NeighborhoodIteratorType &nit,
00120                      const KernelType &kernel);
00121 
00129   PixelType Evaluate(const SmartNeighborhoodIteratorType &nit,
00130                      const KernelType &kernel);
00131   
00132 private:
00133   BinaryDilateImageFilter(const Self&); //purposely not implemented
00134   void operator=(const Self&); //purposely not implemented
00135 
00136   PixelType m_DilateValue;
00137   
00138 } ; // end of class
00139 
00140 } // end namespace itk
00141   
00142 #ifndef ITK_MANUAL_INSTANTIATION
00143 #include "itkBinaryDilateImageFilter.txx"
00144 #endif
00145 
00146 #endif
00147 
00148 

Generated at Wed Mar 12 01:12:48 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000