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

itkBinaryMorphologicalOpeningImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBinaryMorphologicalOpeningImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-23 03:43:41 $
00007   Version:   $Revision: 1.4 $
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 
00018 #ifndef __itkBinaryMorphologicalOpeningImageFilter_h
00019 #define __itkBinaryMorphologicalOpeningImageFilter_h
00020 
00021 #include "itkKernelImageFilter.h"
00022 
00023 namespace itk {
00024 
00046 template<class TInputImage, class TOutputImage, class TKernel>
00047 class ITK_EXPORT BinaryMorphologicalOpeningImageFilter : 
00048     public KernelImageFilter<TInputImage, TOutputImage, TKernel>
00049 {
00050 public:
00052   typedef BinaryMorphologicalOpeningImageFilter                 Self;
00053   typedef KernelImageFilter<TInputImage, TOutputImage, TKernel> Superclass;
00054   typedef SmartPointer<Self>                                    Pointer;
00055   typedef SmartPointer<const Self>                              ConstPointer;
00056 
00058   itkNewMacro(Self);  
00059 
00061   itkTypeMacro(BinaryMorphologicalOpeningImageFilter, 
00062                KernelImageFilter);
00063 
00064   typedef TInputImage                              InputImageType;
00065   typedef TOutputImage                             OutputImageType;
00066   typedef typename InputImageType::Pointer         InputImagePointer;
00067   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00068 
00070   typedef typename TInputImage::PixelType PixelType;
00071 
00073   typedef TKernel KernelType;
00074 
00077   itkSetMacro(ForegroundValue, PixelType);
00078 
00081   itkGetConstMacro(ForegroundValue, PixelType);
00082 
00084   itkSetMacro(BackgroundValue, PixelType);
00085 
00087   itkGetConstMacro(BackgroundValue, PixelType);
00088 
00089 protected:
00090   BinaryMorphologicalOpeningImageFilter();
00091   ~BinaryMorphologicalOpeningImageFilter() {};
00092   void PrintSelf(std::ostream& os, Indent indent) const;
00093 
00096   void  GenerateData ();
00097 
00098 private:
00099   BinaryMorphologicalOpeningImageFilter(const Self&); //purposely not implemented
00100   void operator=(const Self&); //purposely not implemented
00101 
00102   PixelType m_ForegroundValue;
00103   
00104   PixelType m_BackgroundValue;
00105  
00106 }; // end of class
00107 
00108 } // end namespace itk
00109   
00110 #ifndef ITK_MANUAL_INSTANTIATION
00111 #include "itkBinaryMorphologicalOpeningImageFilter.txx"
00112 #endif
00113 
00114 #endif
00115 

Generated at Tue Sep 15 02:17:03 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000