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

itkGrayscaleErodeImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGrayscaleErodeImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-28 14:36:20 $
00007   Version:   $Revision: 1.22 $
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 __itkGrayscaleErodeImageFilter_h
00018 #define __itkGrayscaleErodeImageFilter_h
00019 
00020 // First make sure that the configuration is available.
00021 // This line can be removed once the optimized versions
00022 // gets integrated into the main directories.
00023 #include "itkConfigure.h"
00024 
00025 #ifdef ITK_USE_CONSOLIDATED_MORPHOLOGY
00026 #include "itkOptGrayscaleErodeImageFilter.h"
00027 #else
00028 
00029 
00030 #include "itkMorphologyImageFilter.h"
00031 
00032 namespace itk {
00033 
00053 template<class TInputImage, class TOutputImage, class TKernel>
00054 class ITK_EXPORT GrayscaleErodeImageFilter : 
00055     public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00056 {
00057 public:
00059   typedef GrayscaleErodeImageFilter Self;
00060   typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00061   Superclass;
00062   typedef SmartPointer<Self>        Pointer;
00063   typedef SmartPointer<const Self>  ConstPointer;
00064 
00066   itkNewMacro(Self);  
00067 
00069   itkTypeMacro(GrayscaleErodeImageFilter, 
00070                MorphologyImageFilter);
00071 
00073   typedef typename Superclass::PixelType PixelType;
00074 
00076   typedef typename Superclass::KernelIteratorType  KernelIteratorType;
00077 
00079   typedef typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType;
00080 
00082   typedef typename Superclass::KernelType KernelType;
00083 
00085   typedef typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType;
00086 
00088   itkStaticConstMacro(InputImageDimension, unsigned int,
00089                       TInputImage::ImageDimension);
00090   itkStaticConstMacro(OutputImageDimension, unsigned int,
00091                       TOutputImage::ImageDimension);
00092   itkStaticConstMacro(KernelDimension, unsigned int,
00093                       TKernel::NeighborhoodDimension);
00095 
00097   typedef typename TKernel::PixelType            KernelPixelType;
00098 
00099 #ifdef ITK_USE_CONCEPT_CHECKING
00100 
00101   itkConceptMacro(InputConvertibleToOutputCheck,
00102     (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00103   itkConceptMacro(SameDimensionCheck1,
00104      (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00105   itkConceptMacro(SameDimensionCheck2,
00106     (Concept::SameDimension<InputImageDimension, KernelDimension>));
00107   itkConceptMacro(InputLessThanComparableCheck,
00108     (Concept::LessThanComparable<PixelType>));
00109   itkConceptMacro(KernelGreaterThanComparableCheck,
00110     (Concept::GreaterThanComparable<KernelPixelType>));
00111 
00113 #endif
00114 
00115 protected:
00116   GrayscaleErodeImageFilter();
00117   ~GrayscaleErodeImageFilter() {};
00118 
00125   virtual PixelType Evaluate(const NeighborhoodIteratorType &nit,
00126                              const KernelIteratorType kernelBegin,
00127                              const KernelIteratorType kernelEnd);
00128 
00129 private:
00130   GrayscaleErodeImageFilter(const Self&); //purposely not implemented
00131   void operator=(const Self&); //purposely not implemented
00132 
00133   // Default boundary condition for erosion filter, defaults to
00134   // NumericTraits<PixelType>::max()
00135   DefaultBoundaryConditionType m_ErodeBoundaryCondition;
00136 
00137 }; // end of class
00138 
00139 } // end namespace itk
00140   
00141 #ifndef ITK_MANUAL_INSTANTIATION
00142 #include "itkGrayscaleErodeImageFilter.txx"
00143 #endif
00144 
00145 #endif
00146 
00147 #endif
00148 

Generated at Fri Apr 16 18:26:38 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000