00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkBasicErodeImageFilter_h
00018 #define __itkBasicErodeImageFilter_h
00019
00020 #include "itkMorphologyImageFilter.h"
00021
00022 namespace itk {
00023
00043 template<class TInputImage, class TOutputImage, class TKernel>
00044 class ITK_EXPORT BasicErodeImageFilter :
00045 public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00046 {
00047 public:
00049 typedef BasicErodeImageFilter Self;
00050 typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel> Superclass;
00051 typedef SmartPointer<Self> Pointer;
00052 typedef SmartPointer<const Self> ConstPointer;
00053
00055 itkNewMacro(Self);
00056
00058 itkTypeMacro(BasicErodeImageFilter,
00059 MorphologyImageFilter);
00060
00062 typedef typename Superclass::PixelType PixelType;
00063
00065 typedef typename Superclass::KernelIteratorType KernelIteratorType;
00066
00068 typedef typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType;
00069
00071 typedef typename Superclass::KernelType KernelType;
00072
00074 typedef typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType;
00075
00077 itkStaticConstMacro(InputImageDimension, unsigned int,
00078 TInputImage::ImageDimension);
00079 itkStaticConstMacro(OutputImageDimension, unsigned int,
00080 TOutputImage::ImageDimension);
00081 itkStaticConstMacro(KernelDimension, unsigned int,
00082 TKernel::NeighborhoodDimension);
00084
00086 typedef typename TKernel::PixelType KernelPixelType;
00087
00088 #ifdef ITK_USE_CONCEPT_CHECKING
00089
00090 itkConceptMacro(InputConvertibleToOutputCheck,
00091 (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00092 itkConceptMacro(SameDimensionCheck1,
00093 (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00094 itkConceptMacro(SameDimensionCheck2,
00095 (Concept::SameDimension<InputImageDimension, KernelDimension>));
00096 itkConceptMacro(InputLessThanComparableCheck,
00097 (Concept::LessThanComparable<PixelType>));
00098 itkConceptMacro(KernelGreaterThanComparableCheck,
00099 (Concept::GreaterThanComparable<KernelPixelType>));
00100
00102 #endif
00103
00104 protected:
00105 BasicErodeImageFilter();
00106 ~BasicErodeImageFilter() {};
00107
00114 virtual PixelType Evaluate(const NeighborhoodIteratorType &nit,
00115 const KernelIteratorType kernelBegin,
00116 const KernelIteratorType kernelEnd);
00117
00118 private:
00119 BasicErodeImageFilter(const Self&);
00120 void operator=(const Self&);
00121
00122
00123
00124 DefaultBoundaryConditionType m_ErodeBoundaryCondition;
00125
00126 };
00127
00128 }
00129
00130 #ifndef ITK_MANUAL_INSTANTIATION
00131 #include "itkBasicErodeImageFilter.txx"
00132 #endif
00133
00134 #endif
00135