Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkErodeObjectMorphologyImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkErodeObjectMorphologyImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-28 14:36:20 $
00007   Version:   $Revision: 1.11 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
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   itkGetConstMacro(BackgroundValue, PixelType);
00094 
00096   typedef typename TKernel::PixelType            KernelPixelType;
00097 
00098 #ifdef ITK_USE_CONCEPT_CHECKING
00099 
00100   itkConceptMacro(KernelGreaterThanComparableCheck,
00101     (Concept::GreaterThanComparable<KernelPixelType>));
00102 
00104 #endif
00105 
00106 protected:
00107   ErodeObjectMorphologyImageFilter();
00108   ~ErodeObjectMorphologyImageFilter() {};
00109   void PrintSelf(std::ostream& os, Indent indent) const;
00110 
00115   void Evaluate(OutputNeighborhoodIteratorType &nit,
00116                 const KernelType &kernel);
00117 
00118 private:
00119   ErodeObjectMorphologyImageFilter(const Self&); //purposely not implemented
00120   void operator=(const Self&); //purposely not implemented
00121 
00122   PixelType m_BackgroundValue;
00123 
00124   // Default boundary condition for erosion filter, defaults to
00125   // NumericTraits<PixelType>::max()
00126   DefaultBoundaryConditionType m_ErodeBoundaryCondition;
00127 
00128 }; // end of class
00129 
00130 } // end namespace itk
00131   
00132 #ifndef ITK_MANUAL_INSTANTIATION
00133 #include "itkErodeObjectMorphologyImageFilter.txx"
00134 #endif
00135 
00136 #endif
00137 

Generated at Mon Jul 12 2010 18:15:49 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000