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

itkReconstructionByErosionImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkReconstructionByErosionImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-17 16:30:50 $
00007   Version:   $Revision: 1.7 $
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 __itkReconstructionByErosionImageFilter_h
00018 #define __itkReconstructionByErosionImageFilter_h
00019 
00020 #include "itkReconstructionImageFilter.h"
00021 
00022 #include "itkNumericTraits.h"
00023 
00024 namespace itk {
00058 template <class TInputImage, class TOutputImage>
00059 class ITK_EXPORT ReconstructionByErosionImageFilter :
00060   public ReconstructionImageFilter<TInputImage, TOutputImage, std::less<typename TOutputImage::PixelType> >
00061 {
00062 public:
00063   typedef ReconstructionByErosionImageFilter Self;
00064   typedef ReconstructionImageFilter<
00065     TInputImage, TOutputImage, std::less<typename TOutputImage::PixelType> >
00066                                              Superclass;
00067   typedef SmartPointer<Self>                 Pointer;
00068   typedef SmartPointer<const Self>           ConstPointer;
00069 
00071   typedef TInputImage                              MarkerImageType;
00072   typedef typename MarkerImageType::Pointer        MarkerImagePointer;
00073   typedef typename MarkerImageType::ConstPointer   MarkerImageConstPointer;
00074   typedef typename MarkerImageType::RegionType     MarkerImageRegionType;
00075   typedef typename MarkerImageType::PixelType      MarkerImagePixelType;
00076   typedef TInputImage                              MaskImageType;
00077   typedef typename MaskImageType::Pointer          MaskImagePointer;
00078   typedef typename MaskImageType::ConstPointer     MaskImageConstPointer;
00079   typedef typename MaskImageType::RegionType       MaskImageRegionType;
00080   typedef typename MaskImageType::PixelType        MaskImagePixelType;
00081   typedef TOutputImage                             OutputImageType;
00082   typedef typename OutputImageType::Pointer        OutputImagePointer;
00083   typedef typename OutputImageType::ConstPointer   OutputImageConstPointer;
00084   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00085   typedef typename OutputImageType::PixelType      OutputImagePixelType;
00086 
00088   itkStaticConstMacro(MarkerImageDimension, unsigned int,
00089                       TInputImage::ImageDimension);
00090   itkStaticConstMacro(MaskImageDimension, unsigned int,
00091                       TInputImage::ImageDimension);
00092   itkStaticConstMacro(OutputImageDimension, unsigned int,
00093                       TOutputImage::ImageDimension);
00095 
00097   itkNewMacro(Self);
00098 
00100   itkTypeMacro(ReconstructionByErosionImageFilter, 
00101                ReconstructionImageFilter);
00102 
00103 
00104 protected:
00105   ReconstructionByErosionImageFilter()
00106     {
00107     this->m_MarkerValue = NumericTraits<ITK_TYPENAME TOutputImage::PixelType>::max();
00108     }
00109   virtual ~ReconstructionByErosionImageFilter() {}
00110 
00111 private:
00112   ReconstructionByErosionImageFilter(const Self&); //purposely not implemented
00113   void operator=(const Self&); //purposely not implemented
00114 
00115 }; // end ReconstructionByErosionImageFilter
00116 
00117 }
00118 
00119 #endif
00120 

Generated at Sat Feb 28 13:24:28 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000