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

itkGrayscaleFunctionDilateImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGrayscaleFunctionDilateImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-16 16:45:09 $
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 __itkGrayscaleFunctionDilateImageFilter_h
00018 #define __itkGrayscaleFunctionDilateImageFilter_h
00019 
00020 #include "itkMorphologyImageFilter.h"
00021 
00022 namespace itk {
00023 
00047 template<class TInputImage, class TOutputImage, class TKernel>
00048 class ITK_EXPORT GrayscaleFunctionDilateImageFilter : 
00049     public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00050 {
00051 public:
00053   typedef GrayscaleFunctionDilateImageFilter Self;
00054   typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00055   Superclass;
00056   typedef SmartPointer<Self>        Pointer;
00057   typedef SmartPointer<const Self>  ConstPointer;
00058 
00060   itkNewMacro(Self);  
00061 
00063   itkTypeMacro(GrayscaleFunctionDilateImageFilter, 
00064                MorphologyImageFilter);
00065 
00067   typedef typename Superclass::PixelType PixelType;
00068 
00070   typedef typename Superclass::KernelIteratorType  KernelIteratorType;
00071 
00073   typedef typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType;
00074 
00076   typedef typename Superclass::KernelType KernelType;
00077 
00079   typedef typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType;
00080 
00082   itkStaticConstMacro(InputImageDimension, unsigned int,
00083                       TInputImage::ImageDimension);
00084   itkStaticConstMacro(OutputImageDimension, unsigned int,
00085                       TOutputImage::ImageDimension);
00086   itkStaticConstMacro(KernelDimension, unsigned int,
00087                       TKernel::NeighborhoodDimension);
00089 
00090 #ifdef ITK_USE_CONCEPT_CHECKING
00091 
00092   itkConceptMacro(SameDimensionCheck1,
00093      (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00094   itkConceptMacro(SameDimensionCheck2,
00095     (Concept::SameDimension<InputImageDimension, KernelDimension>));
00096   itkConceptMacro(InputConvertibleToOutputCheck,
00097     (Concept::Convertible<PixelType, typename TOutputImage::PixelType>));
00098   itkConceptMacro(KernelConvertibleToInputCheck,
00099     (Concept::Convertible<typename TKernel::PixelType, PixelType>));
00100   itkConceptMacro(InputAdditiveOperatorsCheck,
00101     (Concept::AdditiveOperators<PixelType>));
00102   itkConceptMacro(InputGreaterThanComparableCheck,
00103     (Concept::GreaterThanComparable<PixelType>));
00104   itkConceptMacro(KernelGreaterThanIntCheck,
00105     (Concept::GreaterThanComparable<typename TKernel::PixelType, int>));
00106 
00108 #endif
00109 
00110 protected:
00111   GrayscaleFunctionDilateImageFilter();
00112   ~GrayscaleFunctionDilateImageFilter() {};
00113 
00121   PixelType Evaluate(const NeighborhoodIteratorType &nit,
00122                      const KernelIteratorType kernelBegin,
00123                      const KernelIteratorType kernelEnd);
00124 
00125 private:
00126   GrayscaleFunctionDilateImageFilter(const Self&); //purposely not implemented
00127   void operator=(const Self&); //purposely not implemented
00128 
00129   // Default boundary condition for dilation filter, defaults to
00130   // NumericTraits<PixelType>::NonpositiveMin()
00131   DefaultBoundaryConditionType m_DilateBoundaryCondition;
00132   
00133 }; // end of class
00134 
00135 } // end namespace itk
00136   
00137 #ifndef ITK_MANUAL_INSTANTIATION
00138 #include "itkGrayscaleFunctionDilateImageFilter.txx"
00139 #endif
00140 
00141 #endif
00142 

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