itkGrayscaleErodeImageFilter.h
Go to the documentation of this file.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
00096 #ifdef ITK_USE_CONCEPT_CHECKING
00097
00098 itkConceptMacro(InputConvertibleToOutputCheck,
00099 (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00100 itkConceptMacro(SameDimensionCheck1,
00101 (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00102 itkConceptMacro(SameDimensionCheck2,
00103 (Concept::SameDimension<InputImageDimension, KernelDimension>));
00104 itkConceptMacro(InputLessThanComparableCheck,
00105 (Concept::LessThanComparable<PixelType>));
00106 itkConceptMacro(KernelGreaterThanIntCheck,
00107 (Concept::GreaterThanComparable<typename TKernel::PixelType, int>));
00108
00110 #endif
00111
00112 protected:
00113 GrayscaleErodeImageFilter();
00114 ~GrayscaleErodeImageFilter() {};
00115
00122 virtual PixelType Evaluate(const NeighborhoodIteratorType &nit,
00123 const KernelIteratorType kernelBegin,
00124 const KernelIteratorType kernelEnd);
00125
00126 private:
00127 GrayscaleErodeImageFilter(const Self&);
00128 void operator=(const Self&);
00129
00130
00131
00132 DefaultBoundaryConditionType m_ErodeBoundaryCondition;
00133
00134 };
00135
00136 }
00137
00138 #ifndef ITK_MANUAL_INSTANTIATION
00139 #include "itkGrayscaleErodeImageFilter.txx"
00140 #endif
00141
00142 #endif
00143
00144 #endif
00145