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

itkBinaryDilateImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBinaryDilateImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/08/23 15:19:28 $
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 __itkBinaryDilateImageFilter_h
00018 #define __itkBinaryDilateImageFilter_h
00019 
00020 #include "itkMorphologyImageFilter.h"
00021 
00022 namespace itk {
00023 
00075 template<class TInputImage, class TOutputImage, class TKernel>
00076 class ITK_EXPORT BinaryDilateImageFilter : 
00077     public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00078 {
00079 public:
00081   typedef BinaryDilateImageFilter Self;
00082   typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
00083   Superclass;
00084   typedef SmartPointer<Self>        Pointer;
00085   typedef SmartPointer<const Self>  ConstPointer;
00086   
00088   itkNewMacro(Self);  
00089 
00091   itkTypeMacro(BinaryDilateImageFilter, MorphologyImageFilter);
00092   
00094   typedef typename Superclass::PixelType PixelType;
00095 
00097   typedef ConstNeighborhoodIterator<TInputImage> 
00098   NeighborhoodIteratorType ;
00099 
00101   typedef TKernel KernelType;
00102   
00104   typedef typename KernelType::ConstIterator KernelIteratorType ;
00105  
00107   typedef typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType;
00108 
00111   itkSetMacro(DilateValue, PixelType);
00112 
00115   itkGetMacro(DilateValue, PixelType);
00116   
00117 protected:
00118   BinaryDilateImageFilter();
00119   ~BinaryDilateImageFilter() {};
00120   void PrintSelf(std::ostream& os, Indent indent) const;
00121 
00129   PixelType Evaluate(const NeighborhoodIteratorType &nit,
00130                      const KernelIteratorType kernelBegin,
00131                      const KernelIteratorType kernelEnd);
00132 
00135   virtual void BeforeThreadedGenerateData();
00136    
00137   
00138 private:
00139   BinaryDilateImageFilter(const Self&); //purposely not implemented
00140   void operator=(const Self&); //purposely not implemented
00141 
00142   PixelType m_DilateValue;
00143 
00144   // Cache whether the center pixel of the kernel is on (for
00145   // optimization).
00146   bool m_KernelCenterPixelOn;
00147 
00148   // Default boundary condition for dilation filter, defaults to
00149   // NumericTraits<PixelType>::NonpositiveMin()
00150   DefaultBoundaryConditionType m_DilateBoundaryCondition;
00151 } ; // end of class
00152 
00153 } // end namespace itk
00154   
00155 #ifndef ITK_MANUAL_INSTANTIATION
00156 #include "itkBinaryDilateImageFilter.txx"
00157 #endif
00158 
00159 #endif
00160 
00161 

Generated at Tue Aug 30 16:43:01 2005 for ITK by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2000