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
00021
00022
00023 #include "itkConfigure.h"
00024
00025 #ifdef ITK_USE_CONSOLIDATED_MORPHOLOGY
00026 #include "itkOptGrayscaleErodeImageFilter.h"
00027 #else
00028
00029
00030 #include "itkMorphologyImageFilter.h"
00031
00032 namespace itk {
00033
00053 template<class TInputImage, class TOutputImage, class TKernel>
00054 class ITK_EXPORT GrayscaleErodeImageFilter :
00055 public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00056 {
00057 public:
00059 typedef GrayscaleErodeImageFilter Self;
00060 typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00061 Superclass;
00062 typedef SmartPointer<Self> Pointer;
00063 typedef SmartPointer<const Self> ConstPointer;
00064
00066 itkNewMacro(Self);
00067
00069 itkTypeMacro(GrayscaleErodeImageFilter,
00070 MorphologyImageFilter);
00071
00073 typedef typename Superclass::PixelType PixelType;
00074
00076 typedef typename Superclass::KernelIteratorType KernelIteratorType;
00077
00079 typedef typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType;
00080
00082 typedef typename Superclass::KernelType KernelType;
00083
00085 typedef typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType;
00086
00088 itkStaticConstMacro(InputImageDimension, unsigned int,
00089 TInputImage::ImageDimension);
00090 itkStaticConstMacro(OutputImageDimension, unsigned int,
00091 TOutputImage::ImageDimension);
00092 itkStaticConstMacro(KernelDimension, unsigned int,
00093 TKernel::NeighborhoodDimension);
00095
00097 typedef typename TKernel::PixelType KernelPixelType;
00098
00099 #ifdef ITK_USE_CONCEPT_CHECKING
00100
00101 itkConceptMacro(InputConvertibleToOutputCheck,
00102 (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00103 itkConceptMacro(SameDimensionCheck1,
00104 (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00105 itkConceptMacro(SameDimensionCheck2,
00106 (Concept::SameDimension<InputImageDimension, KernelDimension>));
00107 itkConceptMacro(InputLessThanComparableCheck,
00108 (Concept::LessThanComparable<PixelType>));
00109 itkConceptMacro(KernelGreaterThanComparableCheck,
00110 (Concept::GreaterThanComparable<KernelPixelType>));
00111
00113 #endif
00114
00115 protected:
00116 GrayscaleErodeImageFilter();
00117 ~GrayscaleErodeImageFilter() {};
00118
00125 virtual PixelType Evaluate(const NeighborhoodIteratorType &nit,
00126 const KernelIteratorType kernelBegin,
00127 const KernelIteratorType kernelEnd);
00128
00129 private:
00130 GrayscaleErodeImageFilter(const Self&);
00131 void operator=(const Self&);
00132
00133
00134
00135 DefaultBoundaryConditionType m_ErodeBoundaryCondition;
00136
00137 };
00138
00139 }
00140
00141 #ifndef ITK_MANUAL_INSTANTIATION
00142 #include "itkGrayscaleErodeImageFilter.txx"
00143 #endif
00144
00145 #endif
00146
00147 #endif
00148