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

itkBasicDilateImageFilter.h

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

Generated at Sat Feb 28 11:59:45 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000