itkGrayscaleDilateImageFilter.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 __itkGrayscaleDilateImageFilter_h
00018 #define __itkGrayscaleDilateImageFilter_h
00019
00020
00021
00022
00023 #include "itkConfigure.h"
00024
00025 #ifdef ITK_USE_CONSOLIDATED_MORPHOLOGY
00026 #include "itkOptGrayscaleDilateImageFilter.h"
00027 #else
00028
00029
00030 #include "itkMorphologyImageFilter.h"
00031
00032 namespace itk {
00033
00055 template<class TInputImage, class TOutputImage, class TKernel>
00056 class ITK_EXPORT GrayscaleDilateImageFilter :
00057 public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00058 {
00059 public:
00061 typedef GrayscaleDilateImageFilter Self;
00062 typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00063 Superclass;
00064 typedef SmartPointer<Self> Pointer;
00065 typedef SmartPointer<const Self> ConstPointer;
00066
00068 itkNewMacro(Self);
00069
00071 itkTypeMacro(GrayscaleDilateImageFilter,
00072 MorphologyImageFilter);
00073
00075 typedef typename Superclass::PixelType PixelType;
00076
00078 typedef typename Superclass::KernelIteratorType KernelIteratorType;
00079
00081 typedef typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType;
00082
00084 typedef typename Superclass::KernelType KernelType;
00085
00087 typedef typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType;
00088
00090 itkStaticConstMacro(InputImageDimension, unsigned int,
00091 TInputImage::ImageDimension);
00092 itkStaticConstMacro(OutputImageDimension, unsigned int,
00093 TOutputImage::ImageDimension);
00094 itkStaticConstMacro(KernelDimension, unsigned int,
00095 TKernel::NeighborhoodDimension);
00097
00099 typedef typename TKernel::PixelType KernelPixelType;
00100
00101 #ifdef ITK_USE_CONCEPT_CHECKING
00102
00103 itkConceptMacro(InputConvertibleToOutputCheck,
00104 (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00105 itkConceptMacro(SameDimensionCheck1,
00106 (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00107 itkConceptMacro(SameDimensionCheck2,
00108 (Concept::SameDimension<InputImageDimension, KernelDimension>));
00109 itkConceptMacro(InputGreaterThanComparableCheck,
00110 (Concept::GreaterThanComparable<PixelType>));
00111 itkConceptMacro(KernelGreaterThanComparableCheck,
00112 (Concept::GreaterThanComparable<KernelPixelType>));
00113
00115 #endif
00116
00117 protected:
00118 GrayscaleDilateImageFilter();
00119 ~GrayscaleDilateImageFilter() {};
00120
00127 PixelType Evaluate(const NeighborhoodIteratorType &nit,
00128 const KernelIteratorType kernelBegin,
00129 const KernelIteratorType kernelEnd);
00130
00131 private:
00132 GrayscaleDilateImageFilter(const Self&);
00133 void operator=(const Self&);
00134
00135
00136
00137 DefaultBoundaryConditionType m_DilateBoundaryCondition;
00138
00139 };
00140
00141 }
00142
00143 #ifndef ITK_MANUAL_INSTANTIATION
00144 #include "itkGrayscaleDilateImageFilter.txx"
00145 #endif
00146
00147 #endif
00148
00149 #endif
00150