00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkBasicDilateImageFilter_h
00018 #define __itkBasicDilateImageFilter_h
00019
00020 #include "itkMorphologyImageFilter.h"
00021
00022 namespace itk {
00023
00045 template<class TInputImage, class TOutputImage, class TKernel>
00046 class ITK_EXPORT BasicDilateImageFilter :
00047 public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00048 {
00049 public:
00051 typedef BasicDilateImageFilter Self;
00052 typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel> Superclass;
00053 typedef SmartPointer<Self> Pointer;
00054 typedef SmartPointer<const Self> ConstPointer;
00055
00057 itkNewMacro(Self);
00058
00060 itkTypeMacro(BasicDilateImageFilter,
00061 MorphologyImageFilter);
00062
00064 typedef typename Superclass::PixelType PixelType;
00065
00067 typedef typename Superclass::KernelIteratorType KernelIteratorType;
00068
00070 typedef typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType;
00071
00073 typedef typename Superclass::KernelType KernelType;
00074
00076 typedef typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType;
00077
00079 itkStaticConstMacro(InputImageDimension, unsigned int,
00080 TInputImage::ImageDimension);
00081 itkStaticConstMacro(OutputImageDimension, unsigned int,
00082 TOutputImage::ImageDimension);
00083 itkStaticConstMacro(KernelDimension, unsigned int,
00084 TKernel::NeighborhoodDimension);
00086
00087 #ifdef ITK_USE_CONCEPT_CHECKING
00088
00089 itkConceptMacro(InputConvertibleToOutputCheck,
00090 (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00091 itkConceptMacro(SameDimensionCheck1,
00092 (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00093 itkConceptMacro(SameDimensionCheck2,
00094 (Concept::SameDimension<InputImageDimension, KernelDimension>));
00095 itkConceptMacro(InputGreaterThanComparableCheck,
00096 (Concept::GreaterThanComparable<PixelType>));
00097 itkConceptMacro(KernelGreaterThanIntCheck,
00098 (Concept::GreaterThanComparable<typename TKernel::PixelType, int>));
00099
00101 #endif
00102
00103 protected:
00104 BasicDilateImageFilter();
00105 ~BasicDilateImageFilter() {};
00106
00113 PixelType Evaluate(const NeighborhoodIteratorType &nit,
00114 const KernelIteratorType kernelBegin,
00115 const KernelIteratorType kernelEnd);
00116
00117 private:
00118 BasicDilateImageFilter(const Self&);
00119 void operator=(const Self&);
00120
00121
00122
00123 DefaultBoundaryConditionType m_DilateBoundaryCondition;
00124
00125 };
00126
00127 }
00128
00129 #ifndef ITK_MANUAL_INSTANTIATION
00130 #include "itkBasicDilateImageFilter.txx"
00131 #endif
00132
00133 #endif
00134