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

itkBinaryErodeImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBinaryErodeImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/11/11 20:16:05 $
00007   Version:   $Revision: 1.18 $
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 __itkBinaryErodeImageFilter_h
00018 #define __itkBinaryErodeImageFilter_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 {
00102 template <class TInputImage, class TOutputImage, class TKernel>
00103 class ITK_EXPORT BinaryErodeImageFilter :
00104     public BinaryMorphologyImageFilter< TInputImage, TOutputImage, TKernel >
00105 {
00106 public:
00107 
00109   itkStaticConstMacro(InputImageDimension, unsigned int,
00110                       TInputImage::ImageDimension);
00111   itkStaticConstMacro(OutputImageDimension, unsigned int,
00112                       TOutputImage::ImageDimension);
00114 
00116   itkStaticConstMacro(KernelDimension, unsigned int,
00117                       TKernel::NeighborhoodDimension);
00118 
00120   typedef TInputImage InputImageType;
00121   typedef TOutputImage OutputImageType;
00122   typedef TKernel KernelType;
00123 
00124 
00126   typedef BinaryErodeImageFilter Self;
00127   typedef BinaryMorphologyImageFilter<InputImageType, OutputImageType, KernelType> Superclass;
00128   typedef SmartPointer<Self> Pointer;
00129   typedef SmartPointer<const Self>  ConstPointer;
00130 
00132   itkNewMacro(Self);
00133 
00135   itkTypeMacro(BinaryErodeImageFilter, BinaryMorphologyImageFilter);
00136 
00138   typedef typename KernelType::ConstIterator KernelIteratorType ;
00139 
00141   typedef typename InputImageType::PixelType InputPixelType;
00142   typedef typename OutputImageType::PixelType OutputPixelType;
00143   typedef typename NumericTraits<InputPixelType>::RealType InputRealType;
00144   typedef typename InputImageType::OffsetType OffsetType;
00145   typedef typename InputImageType::IndexType IndexType;
00146 
00147   typedef typename InputImageType::RegionType InputImageRegionType;
00148   typedef typename OutputImageType::RegionType OutputImageRegionType;
00149   typedef typename InputImageType::SizeType InputSizeType;
00150 
00154   void SetErodeValue(const InputPixelType& value)
00155     { this->SetForegroundValue( value ); }
00156 
00160   InputPixelType GetErodeValue() const
00161     { return this->GetForegroundValue(); }
00162 
00163 protected:
00164   BinaryErodeImageFilter();
00165   virtual ~BinaryErodeImageFilter(){}
00166   void PrintSelf(std::ostream& os, Indent indent) const;
00167 
00168   void GenerateData();
00169 
00170   // type inherited from the superclass
00171   typedef typename Superclass::NeighborIndexContainer NeighborIndexContainer;
00172 
00173 private:
00174   BinaryErodeImageFilter(const Self&); //purposely not implemented
00175   void operator=(const Self&); //purposely not implemented
00176 
00177 };
00178 
00179 } // end namespace itk
00180 
00181 #ifndef ITK_MANUAL_INSTANTIATION
00182 #include "itkBinaryErodeImageFilter.txx"
00183 #endif
00184 
00185 #endif
00186 

Generated at Sat Sep 2 20:09:28 2006 for ITK by doxygen 1.4.7 written by Dimitri van Heesch, © 1997-2000