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: 2008-10-16 16:45:08 $
00007   Version:   $Revision: 1.21 $
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 
00096 #ifdef ITK_USE_CONCEPT_CHECKING
00097 
00098   itkConceptMacro(InputConvertibleToOutputCheck,
00099     (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00100   itkConceptMacro(SameDimensionCheck1,
00101      (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00102   itkConceptMacro(SameDimensionCheck2,
00103     (Concept::SameDimension<InputImageDimension, KernelDimension>));
00104   itkConceptMacro(InputLessThanComparableCheck,
00105     (Concept::LessThanComparable<PixelType>));
00106   itkConceptMacro(KernelGreaterThanIntCheck,
00107     (Concept::GreaterThanComparable<typename TKernel::PixelType, int>));
00108 
00110 #endif
00111 
00112 protected:
00113   GrayscaleErodeImageFilter();
00114   ~GrayscaleErodeImageFilter() {};
00115 
00122   virtual PixelType Evaluate(const NeighborhoodIteratorType &nit,
00123                              const KernelIteratorType kernelBegin,
00124                              const KernelIteratorType kernelEnd);
00125 
00126 private:
00127   GrayscaleErodeImageFilter(const Self&); //purposely not implemented
00128   void operator=(const Self&); //purposely not implemented
00129 
00130   // Default boundary condition for erosion filter, defaults to
00131   // NumericTraits<PixelType>::max()
00132   DefaultBoundaryConditionType m_ErodeBoundaryCondition;
00133 
00134 }; // end of class
00135 
00136 } // end namespace itk
00137   
00138 #ifndef ITK_MANUAL_INSTANTIATION
00139 #include "itkGrayscaleErodeImageFilter.txx"
00140 #endif
00141 
00142 #endif
00143 
00144 #endif
00145 

Generated at Sat Feb 28 12:32:02 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000