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: 2009-04-28 14:36:36 $
00007   Version:   $Revision: 1.2 $
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 
00088   typedef typename TKernel::PixelType            KernelPixelType;
00089 
00090 #ifdef ITK_USE_CONCEPT_CHECKING
00091 
00092   itkConceptMacro(InputConvertibleToOutputCheck,
00093     (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00094   itkConceptMacro(SameDimensionCheck1,
00095      (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00096   itkConceptMacro(SameDimensionCheck2,
00097     (Concept::SameDimension<InputImageDimension, KernelDimension>));
00098   itkConceptMacro(InputGreaterThanComparableCheck,
00099     (Concept::GreaterThanComparable<PixelType>));
00100   itkConceptMacro(KernelGreaterThanComparableCheck,
00101     (Concept::GreaterThanComparable<KernelPixelType>));
00102 
00104 #endif
00105 
00106 protected:
00107   BasicDilateImageFilter();
00108   ~BasicDilateImageFilter() {};
00109 
00116   PixelType Evaluate(const NeighborhoodIteratorType &nit,
00117                      const KernelIteratorType kernelBegin,
00118                      const KernelIteratorType kernelEnd);
00119 
00120 private:
00121   BasicDilateImageFilter(const Self&); //purposely not implemented
00122   void operator=(const Self&); //purposely not implemented
00123 
00124   // Default boundary condition for dilation filter, defaults to
00125   // NumericTraits<PixelType>::NonpositiveMin()
00126   DefaultBoundaryConditionType m_DilateBoundaryCondition;
00127 
00128 }; // end of class
00129 
00130 } // end namespace itk
00131   
00132 #ifndef ITK_MANUAL_INSTANTIATION
00133 #include "itkBasicDilateImageFilter.txx"
00134 #endif
00135 
00136 #endif
00137 

Generated at Tue Sep 15 02:11:58 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000