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 __itkGrayscaleFunctionDilateImageFilter_h
00018 #define __itkGrayscaleFunctionDilateImageFilter_h
00019
00020 #include "itkMorphologyImageFilter.h"
00021
00022 namespace itk {
00023
00047 template<class TInputImage, class TOutputImage, class TKernel>
00048 class ITK_EXPORT GrayscaleFunctionDilateImageFilter :
00049 public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00050 {
00051 public:
00053 typedef GrayscaleFunctionDilateImageFilter Self;
00054 typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00055 Superclass;
00056 typedef SmartPointer<Self> Pointer;
00057 typedef SmartPointer<const Self> ConstPointer;
00058
00060 itkNewMacro(Self);
00061
00063 itkTypeMacro(GrayscaleFunctionDilateImageFilter,
00064 MorphologyImageFilter);
00065
00067 typedef typename Superclass::PixelType PixelType;
00068
00070 typedef typename Superclass::KernelIteratorType KernelIteratorType;
00071
00073 typedef typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType;
00074
00076 typedef typename Superclass::KernelType KernelType;
00077
00079 typedef typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType;
00080
00082 itkStaticConstMacro(InputImageDimension, unsigned int,
00083 TInputImage::ImageDimension);
00084 itkStaticConstMacro(OutputImageDimension, unsigned int,
00085 TOutputImage::ImageDimension);
00086 itkStaticConstMacro(KernelDimension, unsigned int,
00087 TKernel::NeighborhoodDimension);
00089
00091 typedef typename TKernel::PixelType KernelPixelType;
00092
00093 #ifdef ITK_USE_CONCEPT_CHECKING
00094
00095 itkConceptMacro(SameDimensionCheck1,
00096 (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00097 itkConceptMacro(SameDimensionCheck2,
00098 (Concept::SameDimension<InputImageDimension, KernelDimension>));
00099 itkConceptMacro(InputConvertibleToOutputCheck,
00100 (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00101 itkConceptMacro(KernelConvertibleToInputCheck,
00102 (Concept::Convertible<KernelPixelType, PixelType>));
00103 itkConceptMacro(InputAdditiveOperatorsCheck,
00104 (Concept::AdditiveOperators<PixelType>));
00105 itkConceptMacro(InputGreaterThanComparableCheck,
00106 (Concept::GreaterThanComparable<PixelType>));
00107 itkConceptMacro(KernelGreaterThanComparableCheck,
00108 (Concept::GreaterThanComparable<KernelPixelType>));
00109
00111 #endif
00112
00113 protected:
00114 GrayscaleFunctionDilateImageFilter();
00115 ~GrayscaleFunctionDilateImageFilter() {};
00116
00124 PixelType Evaluate(const NeighborhoodIteratorType &nit,
00125 const KernelIteratorType kernelBegin,
00126 const KernelIteratorType kernelEnd);
00127
00128 private:
00129 GrayscaleFunctionDilateImageFilter(const Self&);
00130 void operator=(const Self&);
00131
00132
00133
00134 DefaultBoundaryConditionType m_DilateBoundaryCondition;
00135
00136 };
00137
00138 }
00139
00140 #ifndef ITK_MANUAL_INSTANTIATION
00141 #include "itkGrayscaleFunctionDilateImageFilter.txx"
00142 #endif
00143
00144 #endif
00145