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

itkGrayscaleDilateImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGrayscaleDilateImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/03/28 19:59:04 $
00007   Version:   $Revision: 1.16 $
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 __itkGrayscaleDilateImageFilter_h
00018 #define __itkGrayscaleDilateImageFilter_h
00019 
00020 #include "itkMorphologyImageFilter.h"
00021 
00022 namespace itk {
00023 
00045 template<class TInputImage, class TOutputImage, class TKernel>
00046 class ITK_EXPORT GrayscaleDilateImageFilter : 
00047     public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00048 {
00049 public:
00051   typedef GrayscaleDilateImageFilter Self;
00052   typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00053   Superclass;
00054   typedef SmartPointer<Self>        Pointer;
00055   typedef SmartPointer<const Self>  ConstPointer;
00056 
00058   itkNewMacro(Self);  
00059 
00061   itkTypeMacro(GrayscaleDilateImageFilter, 
00062                MorphologyImageFilter);
00063 
00065   typedef typename Superclass::PixelType PixelType;
00066 
00068   typedef typename Superclass::KernelIteratorType  KernelIteratorType;
00069 
00071   typedef typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType ;
00072 
00074   typedef typename Superclass::KernelType KernelType;
00075 
00077   typedef typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType;
00078 
00080   itkStaticConstMacro(InputImageDimension, unsigned int,
00081                       TInputImage::ImageDimension);
00082   itkStaticConstMacro(OutputImageDimension, unsigned int,
00083                       TOutputImage::ImageDimension);
00084   itkStaticConstMacro(KernelDimension, unsigned int,
00085                       TKernel::NeighborhoodDimension);
00087 
00088 #ifdef ITK_USE_CONCEPT_CHECKING
00089 
00090   itkConceptMacro(InputConvertibleToOutputCheck,
00091     (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00092   itkConceptMacro(SameDimensionCheck1,
00093      (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00094   itkConceptMacro(SameDimensionCheck2,
00095     (Concept::SameDimension<InputImageDimension, KernelDimension>));
00096   itkConceptMacro(InputGreaterThanComparableCheck,
00097     (Concept::GreaterThanComparable<PixelType>));
00098   itkConceptMacro(KernelGreaterThanIntCheck,
00099     (Concept::GreaterThanComparable<typename TKernel::PixelType, int>));
00100 
00102 #endif
00103 
00104 protected:
00105   GrayscaleDilateImageFilter();
00106   ~GrayscaleDilateImageFilter() {};
00107 
00114   PixelType Evaluate(const NeighborhoodIteratorType &nit,
00115                      const KernelIteratorType kernelBegin,
00116                      const KernelIteratorType kernelEnd);
00117 
00118 private:
00119   GrayscaleDilateImageFilter(const Self&); //purposely not implemented
00120   void operator=(const Self&); //purposely not implemented
00121 
00122   // Default boundary condition for dilation filter, defaults to
00123   // NumericTraits<PixelType>::NonpositiveMin()
00124   DefaultBoundaryConditionType m_DilateBoundaryCondition;
00125 
00126 } ; // end of class
00127 
00128 } // end namespace itk
00129   
00130 #ifndef ITK_MANUAL_INSTANTIATION
00131 #include "itkGrayscaleDilateImageFilter.txx"
00132 #endif
00133 
00134 #endif
00135 
00136 
00137 

Generated at Tue Jul 29 20:15:52 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000