00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
00078 itkStaticConstMacro(InputImageDimension, unsigned int,
00079 TInputImage::ImageDimension);
00080 itkStaticConstMacro(OutputImageDimension, unsigned int,
00081 TOutputImage::ImageDimension);
00082 itkStaticConstMacro(KernelDimension, unsigned int,
00083 TKernel::NeighborhoodDimension);
00085
00086 #ifdef ITK_USE_CONCEPT_CHECKING
00087
00088 itkConceptMacro(InputConvertibleToOutputCheck,
00089 (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00090 itkConceptMacro(SameDimensionCheck1,
00091 (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00092 itkConceptMacro(SameDimensionCheck2,
00093 (Concept::SameDimension<InputImageDimension, KernelDimension>));
00094 itkConceptMacro(InputLessThanComparableCheck,
00095 (Concept::LessThanComparable<PixelType>));
00096 itkConceptMacro(KernelGreaterThanIntCheck,
00097 (Concept::GreaterThanComparable<typename TKernel::PixelType, int>));
00098
00100 #endif
00101
00102 protected:
00103 GrayscaleErodeImageFilter();
00104 ~GrayscaleErodeImageFilter() {};
00105
00112 virtual PixelType Evaluate(const NeighborhoodIteratorType &nit,
00113 const KernelIteratorType kernelBegin,
00114 const KernelIteratorType kernelEnd);
00115
00116 private:
00117 GrayscaleErodeImageFilter(const Self&);
00118 void operator=(const Self&);
00119
00120
00121
00122 DefaultBoundaryConditionType m_ErodeBoundaryCondition;
00123
00124 } ;
00125
00126 }
00127
00128 #ifndef ITK_MANUAL_INSTANTIATION
00129 #include "itkGrayscaleErodeImageFilter.txx"
00130 #endif
00131
00132 #endif
00133
00134
00135