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: 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 __itkBinaryErodeImageFilter_h
00018 #define __itkBinaryErodeImageFilter_h
00019 
00020 #include "itkMorphologyImageFilter.h"
00021 
00022 namespace itk {
00023 
00058 template<class TInputImage, class TOutputImage, class TKernel>
00059 class ITK_EXPORT BinaryErodeImageFilter : 
00060   public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00061 {
00062 public:
00064   typedef BinaryErodeImageFilter Self;
00065   typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00066     Superclass;
00067   typedef SmartPointer<Self>        Pointer;
00068   typedef SmartPointer<const Self>  ConstPointer;
00069   
00071   itkNewMacro(Self);  
00072 
00074   itkTypeMacro(BinaryErodeImageFilter, MorphologyImageFilter);
00075   
00077   typedef typename Superclass::PixelType PixelType;
00078 
00080   typedef ConstNeighborhoodIterator<TInputImage>  NeighborhoodIteratorType ;
00081   typedef ConstSmartNeighborhoodIterator<TInputImage>
00082      SmartNeighborhoodIteratorType ;
00083 
00085   typedef TKernel KernelType;
00086   
00088   typedef typename KernelType::ConstIterator KernelIteratorType ;
00089   
00092   itkSetMacro(ErodeValue, PixelType);
00093 
00096   itkGetMacro(ErodeValue, PixelType);
00097   
00098 protected:
00099   BinaryErodeImageFilter();
00100   ~BinaryErodeImageFilter() {};
00101   void PrintSelf(std::ostream& os, Indent indent) const;
00102 
00110   PixelType Evaluate(const NeighborhoodIteratorType &nit,
00111                      const KernelType &kernel);
00112 
00120   PixelType Evaluate(const SmartNeighborhoodIteratorType &nit,
00121                      const KernelType &kernel);
00122   
00123 private:
00124   BinaryErodeImageFilter(const Self&); //purposely not implemented
00125   void operator=(const Self&); //purposely not implemented
00126 
00127   PixelType m_ErodeValue;
00128   
00129 } ; // end of class
00130 
00131 } // end namespace itk
00132   
00133 #ifndef ITK_MANUAL_INSTANTIATION
00134 #include "itkBinaryErodeImageFilter.txx"
00135 #endif
00136 
00137 #endif
00138 
00139 

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