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 __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
00088 typedef typename TKernel::PixelType KernelPixelType;
00089
00090 #ifdef ITK_USE_CONCEPT_CHECKING
00091
00092 itkConceptMacro(InputConvertibleToOutputCheck,
00093 (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00094 itkConceptMacro(SameDimensionCheck1,
00095 (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00096 itkConceptMacro(SameDimensionCheck2,
00097 (Concept::SameDimension<InputImageDimension, KernelDimension>));
00098 itkConceptMacro(InputGreaterThanComparableCheck,
00099 (Concept::GreaterThanComparable<PixelType>));
00100 itkConceptMacro(KernelGreaterThanComparableCheck,
00101 (Concept::GreaterThanComparable<KernelPixelType>));
00102
00104 #endif
00105
00106 protected:
00107 BasicDilateImageFilter();
00108 ~BasicDilateImageFilter() {};
00109
00116 PixelType Evaluate(const NeighborhoodIteratorType &nit,
00117 const KernelIteratorType kernelBegin,
00118 const KernelIteratorType kernelEnd);
00119
00120 private:
00121 BasicDilateImageFilter(const Self&);
00122 void operator=(const Self&);
00123
00124
00125
00126 DefaultBoundaryConditionType m_DilateBoundaryCondition;
00127
00128 };
00129
00130 }
00131
00132 #ifndef ITK_MANUAL_INSTANTIATION
00133 #include "itkBasicDilateImageFilter.txx"
00134 #endif
00135
00136 #endif
00137