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

itkBinaryErodeImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBinaryErodeImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/02/26 20:14:23 $
00007   Version:   $Revision: 1.12 $
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 __itkBinaryErodeImageFilter_h
00018 #define __itkBinaryErodeImageFilter_h
00019 
00020 #include "itkMorphologyImageFilter.h"
00021 
00022 namespace itk {
00023 
00059 template<class TInputImage, class TOutputImage, class TKernel>
00060 class ITK_EXPORT BinaryErodeImageFilter : 
00061   public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00062 {
00063 public:
00065   typedef BinaryErodeImageFilter Self;
00066   typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00067     Superclass;
00068   typedef SmartPointer<Self>        Pointer;
00069   typedef SmartPointer<const Self>  ConstPointer;
00070   
00072   itkNewMacro(Self);  
00073 
00075   itkTypeMacro(BinaryErodeImageFilter, MorphologyImageFilter);
00076   
00078   typedef typename Superclass::PixelType PixelType;
00079 
00081   typedef ConstNeighborhoodIterator<TInputImage>  NeighborhoodIteratorType ;
00082 
00084   typedef TKernel KernelType;
00085   
00087   typedef typename KernelType::ConstIterator KernelIteratorType ;
00088   
00091   itkSetMacro(ErodeValue, PixelType);
00092 
00095   itkGetMacro(ErodeValue, PixelType);
00096   
00097 protected:
00098   BinaryErodeImageFilter();
00099   ~BinaryErodeImageFilter() {};
00100   void PrintSelf(std::ostream& os, Indent indent) const;
00101 
00109   PixelType Evaluate(const NeighborhoodIteratorType &nit,
00110                      const KernelType &kernel);
00111 
00112   
00113 private:
00114   BinaryErodeImageFilter(const Self&); //purposely not implemented
00115   void operator=(const Self&); //purposely not implemented
00116 
00117   PixelType m_ErodeValue;
00118   
00119 } ; // end of class
00120 
00121 } // end namespace itk
00122   
00123 #ifndef ITK_MANUAL_INSTANTIATION
00124 #include "itkBinaryErodeImageFilter.txx"
00125 #endif
00126 
00127 #endif
00128 
00129 

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