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

itkBinaryMorphologicalClosingImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBinaryMorphologicalClosingImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-28 18:14:36 $
00007   Version:   $Revision: 1.3 $
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 __itkBinaryMorphologicalClosingImageFilter_h
00019 #define __itkBinaryMorphologicalClosingImageFilter_h
00020 
00021 #include "itkKernelImageFilter.h"
00022 
00023 namespace itk {
00024 
00046 template<class TInputImage, class TOutputImage, class TKernel>
00047 class ITK_EXPORT BinaryMorphologicalClosingImageFilter : 
00048     public KernelImageFilter<TInputImage, TOutputImage, TKernel>
00049 {
00050 public:
00052   typedef BinaryMorphologicalClosingImageFilter                 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(BinaryMorphologicalClosingImageFilter, 
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 InputPixelType;
00071   typedef typename TInputImage::PixelType OutputPixelType;
00072 
00074   typedef TKernel KernelType;
00075 
00078   itkSetMacro(ForegroundValue, InputPixelType);
00079 
00082   itkGetMacro(ForegroundValue, InputPixelType);
00083 
00084   
00087   itkSetMacro(SafeBorder, bool);
00088   itkGetConstReferenceMacro(SafeBorder, bool);
00089   itkBooleanMacro(SafeBorder);
00091 
00092 protected:
00093   BinaryMorphologicalClosingImageFilter();
00094   ~BinaryMorphologicalClosingImageFilter() {};
00095   void PrintSelf(std::ostream& os, Indent indent) const;
00096 
00099   void  GenerateData ();
00100 
00101 private:
00102   BinaryMorphologicalClosingImageFilter(const Self&); //purposely not implemented
00103   void operator=(const Self&); //purposely not implemented
00104 
00105   InputPixelType m_ForegroundValue;
00106   
00107   bool m_SafeBorder;
00108 }; // end of class
00109 
00110 } // end namespace itk
00111   
00112 #ifndef ITK_MANUAL_INSTANTIATION
00113 #include "itkBinaryMorphologicalClosingImageFilter.txx"
00114 #endif
00115 
00116 #endif
00117 

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