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

itkBasicErodeImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBasicErodeImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-09-29 18:36:37 $
00007   Version:   $Revision: 1.2 $
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 __itkBasicErodeImageFilter_h
00018 #define __itkBasicErodeImageFilter_h
00019 
00020 #include "itkMorphologyImageFilter.h"
00021 
00022 namespace itk {
00023 
00043 template<class TInputImage, class TOutputImage, class TKernel>
00044 class ITK_EXPORT BasicErodeImageFilter : 
00045     public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00046 {
00047 public:
00049   typedef BasicErodeImageFilter                                     Self;
00050   typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel> Superclass;
00051   typedef SmartPointer<Self>                                        Pointer;
00052   typedef SmartPointer<const Self>                                  ConstPointer;
00053 
00055   itkNewMacro(Self);  
00056 
00058   itkTypeMacro(BasicErodeImageFilter, 
00059                MorphologyImageFilter);
00060 
00062   typedef typename Superclass::PixelType                            PixelType;
00063 
00065   typedef typename Superclass::KernelIteratorType                   KernelIteratorType;
00066 
00068   typedef typename Superclass::NeighborhoodIteratorType             NeighborhoodIteratorType;
00069 
00071   typedef typename Superclass::KernelType KernelType;
00072 
00074   typedef typename Superclass::DefaultBoundaryConditionType         DefaultBoundaryConditionType;
00075 
00077   itkStaticConstMacro(InputImageDimension, unsigned int,
00078                       TInputImage::ImageDimension);
00079   itkStaticConstMacro(OutputImageDimension, unsigned int,
00080                       TOutputImage::ImageDimension);
00081   itkStaticConstMacro(KernelDimension, unsigned int,
00082                       TKernel::NeighborhoodDimension);
00084 
00085 #ifdef ITK_USE_CONCEPT_CHECKING
00086 
00087   itkConceptMacro(InputConvertibleToOutputCheck,
00088     (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00089   itkConceptMacro(SameDimensionCheck1,
00090      (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00091   itkConceptMacro(SameDimensionCheck2,
00092     (Concept::SameDimension<InputImageDimension, KernelDimension>));
00093   itkConceptMacro(InputLessThanComparableCheck,
00094     (Concept::LessThanComparable<PixelType>));
00095   itkConceptMacro(KernelGreaterThanIntCheck,
00096     (Concept::GreaterThanComparable<typename TKernel::PixelType, int>));
00097 
00099 #endif
00100 
00101 protected:
00102   BasicErodeImageFilter();
00103   ~BasicErodeImageFilter() {};
00104 
00111   virtual PixelType Evaluate(const NeighborhoodIteratorType &nit,
00112                              const KernelIteratorType kernelBegin,
00113                              const KernelIteratorType kernelEnd);
00114 
00115 private:
00116   BasicErodeImageFilter(const Self&); //purposely not implemented
00117   void operator=(const Self&); //purposely not implemented
00118 
00119   // Default boundary condition for erosion filter, defaults to
00120   // NumericTraits<PixelType>::max()
00121   DefaultBoundaryConditionType m_ErodeBoundaryCondition;
00122 
00123 }; // end of class
00124 
00125 } // end namespace itk
00126   
00127 #ifndef ITK_MANUAL_INSTANTIATION
00128 #include "itkBasicErodeImageFilter.txx"
00129 #endif
00130 
00131 #endif
00132 

Generated at Wed Nov 5 20:21:00 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000