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: 2007-09-12 09:20:29 $
00007   Version:   $Revision: 1.20 $
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 <vector>
00021 #include <queue>
00022 #include "itkBinaryMorphologyImageFilter.h"
00023 #include "itkImage.h"
00024 #include "itkNumericTraits.h"
00025 #include "itkNeighborhoodIterator.h"
00026 #include "itkConstNeighborhoodIterator.h"
00027 #include "itkNeighborhood.h"
00028 #include "itkImageBoundaryCondition.h"
00029 #include "itkImageRegionIterator.h"
00030 #include "itkConceptChecking.h"
00031 
00032 namespace itk
00033 {
00066 template <class TInputImage, class TOutputImage, class TKernel>
00067 class ITK_EXPORT BinaryDilateImageFilter :
00068     public BinaryMorphologyImageFilter< TInputImage, TOutputImage, TKernel >
00069 {
00070 public:
00071 
00073   itkStaticConstMacro(InputImageDimension, unsigned int,
00074                       TInputImage::ImageDimension);
00075   itkStaticConstMacro(OutputImageDimension, unsigned int,
00076                       TOutputImage::ImageDimension);
00078 
00080   itkStaticConstMacro(KernelDimension, unsigned int,
00081                       TKernel::NeighborhoodDimension);
00082 
00084   typedef TInputImage  InputImageType;
00085   typedef TOutputImage OutputImageType;
00086   typedef TKernel      KernelType;
00087 
00088 
00090   typedef BinaryDilateImageFilter   Self;
00091   typedef BinaryMorphologyImageFilter<InputImageType, OutputImageType,
00092     KernelType> Superclass;
00093   typedef SmartPointer<Self>        Pointer;
00094   typedef SmartPointer<const Self>  ConstPointer;
00095 
00097   itkNewMacro(Self);
00098 
00100   itkTypeMacro(BinaryDilateImageFilter, BinaryMorphologyImageFilter);
00101 
00103   typedef typename KernelType::ConstIterator KernelIteratorType;
00104 
00106   typedef typename InputImageType::PixelType               InputPixelType;
00107   typedef typename OutputImageType::PixelType              OutputPixelType;
00108   typedef typename NumericTraits<InputPixelType>::RealType InputRealType;
00109   typedef typename InputImageType::OffsetType              OffsetType;
00110   typedef typename InputImageType::IndexType               IndexType;
00111 
00112   typedef typename InputImageType::RegionType  InputImageRegionType;
00113   typedef typename OutputImageType::RegionType OutputImageRegionType;
00114   typedef typename InputImageType::SizeType    InputSizeType;
00115 
00119   void SetDilateValue(const InputPixelType& value)
00120     { this->SetForegroundValue( value ); }
00121 
00125   InputPixelType GetDilateValue() const
00126     { return this->GetForegroundValue(); }
00127 
00128 protected:
00129   BinaryDilateImageFilter();
00130   virtual ~BinaryDilateImageFilter(){}
00131   void PrintSelf(std::ostream& os, Indent indent) const;
00132 
00133   void GenerateData();
00134 
00135   // type inherited from the superclass
00136   typedef typename Superclass::NeighborIndexContainer NeighborIndexContainer;
00137 
00138 private:
00139   BinaryDilateImageFilter(const Self&); //purposely not implemented
00140   void operator=(const Self&); //purposely not implemented
00141 
00142 };
00143 
00144 } // end namespace itk
00145 
00146 #ifndef ITK_MANUAL_INSTANTIATION
00147 #include "itkBinaryDilateImageFilter.txx"
00148 #endif
00149 
00150 #endif
00151 

Generated at Mon Jul 12 2010 17:47:21 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000