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: 2003/02/26 20:13:12 $
00007   Version:   $Revision: 1.11 $
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 
00068 template<class TInputImage, class TOutputImage, class TKernel>
00069 class ITK_EXPORT BinaryDilateImageFilter : 
00070   public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00071 {
00072 public:
00074   typedef BinaryDilateImageFilter Self;
00075   typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00076     Superclass;
00077   typedef SmartPointer<Self>        Pointer;
00078   typedef SmartPointer<const Self>  ConstPointer;
00079   
00081   itkNewMacro(Self);  
00082 
00084   itkTypeMacro(BinaryDilateImageFilter, MorphologyImageFilter);
00085   
00087   typedef typename Superclass::PixelType PixelType;
00088 
00090   typedef ConstNeighborhoodIterator<TInputImage> 
00091     NeighborhoodIteratorType ;
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 
00122 private:
00123   BinaryDilateImageFilter(const Self&); //purposely not implemented
00124   void operator=(const Self&); //purposely not implemented
00125 
00126   PixelType m_DilateValue;
00127   
00128 } ; // end of class
00129 
00130 } // end namespace itk
00131   
00132 #ifndef ITK_MANUAL_INSTANTIATION
00133 #include "itkBinaryDilateImageFilter.txx"
00134 #endif
00135 
00136 #endif
00137 
00138 

Generated at Fri May 21 01:14:27 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000