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

itkGrayscaleMorphologicalOpeningImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGrayscaleMorphologicalOpeningImageFilter.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) Insight Software Consortium. All rights reserved.
00008   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even 
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00012      PURPOSE.  See the above copyright notices for more information.
00013 
00014 =========================================================================*/
00015 #ifndef __itkGrayscaleMorphologicalOpeningImageFilter_h
00016 #define __itkGrayscaleMorphologicalOpeningImageFilter_h
00017 
00018 #include "itkImageToImageFilter.h"
00019 
00020 namespace itk {
00021 
00044 template<class TInputImage, class TOutputImage, class TKernel>
00045 class ITK_EXPORT GrayscaleMorphologicalOpeningImageFilter : 
00046     public ImageToImageFilter<TInputImage, TOutputImage>
00047 {
00048 public:
00050   typedef GrayscaleMorphologicalOpeningImageFilter Self;
00051   typedef ImageToImageFilter<TInputImage, TOutputImage> Superclass;
00052   typedef SmartPointer<Self>        Pointer;
00053   typedef SmartPointer<const Self>  ConstPointer;
00054 
00056   itkNewMacro(Self);  
00057 
00059   itkTypeMacro(GrayscaleMorphologicalOpeningImageFilter, 
00060                ImageToImageFilter);
00061 
00062   typedef TInputImage InputImageType;
00063   typedef TOutputImage OutputImageType;
00064   typedef typename InputImageType::Pointer         InputImagePointer;
00065   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00066 
00068   typedef typename TInputImage::PixelType PixelType ;
00069 
00071   typedef TKernel KernelType;
00072 
00074   itkSetMacro(Kernel, KernelType);
00075 
00077   itkGetConstReferenceMacro(Kernel, KernelType);
00078 
00081   itkSetMacro(SafeBorder, bool);
00082   itkGetConstReferenceMacro(SafeBorder, bool);
00083   itkBooleanMacro(SafeBorder);
00085 
00086 protected:
00087   GrayscaleMorphologicalOpeningImageFilter();
00088   ~GrayscaleMorphologicalOpeningImageFilter() {};
00089   void PrintSelf(std::ostream& os, Indent indent) const;
00090 
00094   void GenerateInputRequestedRegion() ;
00095 
00098   void  GenerateData ();
00099 
00100 private:
00101   GrayscaleMorphologicalOpeningImageFilter(const Self&); //purposely not implemented
00102   void operator=(const Self&); //purposely not implemented
00103 
00105   KernelType m_Kernel ;
00106 
00107   bool m_SafeBorder;
00108 
00109 } ; // end of class
00110 
00111 } // end namespace itk
00112   
00113 #ifndef ITK_MANUAL_INSTANTIATION
00114 #include "itkGrayscaleMorphologicalOpeningImageFilter.txx"
00115 #endif
00116 
00117 #endif
00118 
00119 
00120 

Generated at Fri Sep 8 03:13:10 2006 for ITK by doxygen 1.4.7 written by Dimitri van Heesch, © 1997-2000