00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkGrayscaleErodeImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2004/04/30 21:02:03 $ 00007 Version: $Revision: 1.17 $ 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 __itkGrayscaleErodeImageFilter_h 00018 #define __itkGrayscaleErodeImageFilter_h 00019 00020 #include "itkMorphologyImageFilter.h" 00021 00022 namespace itk { 00023 00043 template<class TInputImage, class TOutputImage, class TKernel> 00044 class ITK_EXPORT GrayscaleErodeImageFilter : 00045 public MorphologyImageFilter<TInputImage, TOutputImage, TKernel> 00046 { 00047 public: 00049 typedef GrayscaleErodeImageFilter Self; 00050 typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel> 00051 Superclass; 00052 typedef SmartPointer<Self> Pointer; 00053 typedef SmartPointer<const Self> ConstPointer; 00054 00056 itkNewMacro(Self); 00057 00059 itkTypeMacro(GrayscaleErodeImageFilter, 00060 MorphologyImageFilter); 00061 00063 typedef typename Superclass::PixelType PixelType; 00064 00066 typedef typename Superclass::KernelIteratorType KernelIteratorType; 00067 00069 typedef typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType ; 00070 00072 typedef typename Superclass::KernelType KernelType; 00073 00075 typedef typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType; 00076 00077 protected: 00078 GrayscaleErodeImageFilter(); 00079 ~GrayscaleErodeImageFilter() {}; 00080 00087 virtual PixelType Evaluate(const NeighborhoodIteratorType &nit, 00088 const KernelIteratorType kernelBegin, 00089 const KernelIteratorType kernelEnd); 00090 00091 private: 00092 GrayscaleErodeImageFilter(const Self&); //purposely not implemented 00093 void operator=(const Self&); //purposely not implemented 00094 00095 // Default boundary condition for erosion filter, defaults to 00096 // NumericTraits<PixelType>::max() 00097 DefaultBoundaryConditionType m_ErodeBoundaryCondition; 00098 00099 } ; // end of class 00100 00101 } // end namespace itk 00102 00103 #ifndef ITK_MANUAL_INSTANTIATION 00104 #include "itkGrayscaleErodeImageFilter.txx" 00105 #endif 00106 00107 #endif 00108 00109