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: 2008-10-16 16:45:08 $
00007   Version:   $Revision: 1.18 $
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 // 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 "itkOptGrayscaleDilateImageFilter.h"
00027 #else
00028 
00029 
00030 #include "itkMorphologyImageFilter.h"
00031 
00032 namespace itk {
00033 
00055 template<class TInputImage, class TOutputImage, class TKernel>
00056 class ITK_EXPORT GrayscaleDilateImageFilter : 
00057     public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00058 {
00059 public:
00061   typedef GrayscaleDilateImageFilter Self;
00062   typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00063                                      Superclass;
00064   typedef SmartPointer<Self>         Pointer;
00065   typedef SmartPointer<const Self>   ConstPointer;
00066 
00068   itkNewMacro(Self);  
00069 
00071   itkTypeMacro(GrayscaleDilateImageFilter, 
00072                MorphologyImageFilter);
00073 
00075   typedef typename Superclass::PixelType PixelType;
00076 
00078   typedef typename Superclass::KernelIteratorType  KernelIteratorType;
00079 
00081   typedef typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType;
00082 
00084   typedef typename Superclass::KernelType KernelType;
00085 
00087   typedef typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType;
00088 
00090   itkStaticConstMacro(InputImageDimension, unsigned int,
00091                       TInputImage::ImageDimension);
00092   itkStaticConstMacro(OutputImageDimension, unsigned int,
00093                       TOutputImage::ImageDimension);
00094   itkStaticConstMacro(KernelDimension, unsigned int,
00095                       TKernel::NeighborhoodDimension);
00097 
00098 #ifdef ITK_USE_CONCEPT_CHECKING
00099 
00100   itkConceptMacro(InputConvertibleToOutputCheck,
00101     (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00102   itkConceptMacro(SameDimensionCheck1,
00103      (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00104   itkConceptMacro(SameDimensionCheck2,
00105     (Concept::SameDimension<InputImageDimension, KernelDimension>));
00106   itkConceptMacro(InputGreaterThanComparableCheck,
00107     (Concept::GreaterThanComparable<PixelType>));
00108   itkConceptMacro(KernelGreaterThanIntCheck,
00109     (Concept::GreaterThanComparable<typename TKernel::PixelType, int>));
00110 
00112 #endif
00113 
00114 protected:
00115   GrayscaleDilateImageFilter();
00116   ~GrayscaleDilateImageFilter() {};
00117 
00124   PixelType Evaluate(const NeighborhoodIteratorType &nit,
00125                      const KernelIteratorType kernelBegin,
00126                      const KernelIteratorType kernelEnd);
00127 
00128 private:
00129   GrayscaleDilateImageFilter(const Self&); //purposely not implemented
00130   void operator=(const Self&); //purposely not implemented
00131 
00132   // Default boundary condition for dilation filter, defaults to
00133   // NumericTraits<PixelType>::NonpositiveMin()
00134   DefaultBoundaryConditionType m_DilateBoundaryCondition;
00135 
00136 }; // end of class
00137 
00138 } // end namespace itk
00139   
00140 #ifndef ITK_MANUAL_INSTANTIATION
00141 #include "itkGrayscaleDilateImageFilter.txx"
00142 #endif
00143 
00144 #endif
00145 
00146 #endif
00147 

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