00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkErodeObjectMorphologyImageFilter_h
00018 #define __itkErodeObjectMorphologyImageFilter_h
00019
00020 #include "itkObjectMorphologyImageFilter.h"
00021
00022 namespace itk {
00023
00043 template<class TInputImage, class TOutputImage, class TKernel>
00044 class ITK_EXPORT ErodeObjectMorphologyImageFilter :
00045 public ObjectMorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00046 {
00047 public:
00049 typedef ErodeObjectMorphologyImageFilter Self;
00050 typedef ObjectMorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00051 Superclass;
00052 typedef SmartPointer<Self> Pointer;
00053 typedef SmartPointer<const Self> ConstPointer;
00054
00056 itkNewMacro(Self);
00057
00059 itkTypeMacro(ErodeObjectMorphologyImageFilter, ObjectMorphologyImageFilter);
00060
00062 typedef typename Superclass::PixelType PixelType;
00063
00065 typedef TKernel KernelType;
00066
00068 typedef typename KernelType::ConstIterator KernelIteratorType ;
00069
00070 typedef NeighborhoodIterator<TOutputImage> OutputNeighborhoodIteratorType ;
00071
00073 typedef typename Superclass::DefaultBoundaryConditionType
00074 DefaultBoundaryConditionType;
00075
00076
00078 void SetErodeValue( PixelType objectValue )
00079 {
00080 this->SetObjectValue( objectValue );
00081 }
00082
00084 PixelType GetErodeValue( void )
00085 {
00086 return this->GetObjectValue();
00087 }
00088
00090 itkSetMacro(BackgroundValue, PixelType);
00091
00093 itkGetMacro(BackgroundValue, PixelType);
00094
00095 #ifdef ITK_USE_CONCEPT_CHECKING
00096
00097 itkConceptMacro(KernelGreaterThanIntCheck,
00098 (Concept::GreaterThanComparable<typename TKernel::PixelType, int>));
00099
00101 #endif
00102
00103 protected:
00104 ErodeObjectMorphologyImageFilter();
00105 ~ErodeObjectMorphologyImageFilter() {};
00106 void PrintSelf(std::ostream& os, Indent indent) const;
00107
00112 void Evaluate(OutputNeighborhoodIteratorType &nit,
00113 const KernelType &kernel);
00114
00115 private:
00116 ErodeObjectMorphologyImageFilter(const Self&);
00117 void operator=(const Self&);
00118
00119 PixelType m_BackgroundValue;
00120
00121
00122
00123 DefaultBoundaryConditionType m_ErodeBoundaryCondition;
00124
00125 } ;
00126
00127 }
00128
00129 #ifndef ITK_MANUAL_INSTANTIATION
00130 #include "itkErodeObjectMorphologyImageFilter.txx"
00131 #endif
00132
00133 #endif
00134
00135
00136