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: 2007/06/07 09:05:07 $
00007   Version:   $Revision: 1.1 $
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 "itkImageToImageFilter.h"
00022 
00023 namespace itk {
00024 
00046 template<class TInputImage, class TOutputImage, class TKernel>
00047 class ITK_EXPORT BinaryMorphologicalOpeningImageFilter : 
00048     public ImageToImageFilter<TInputImage, TOutputImage>
00049 {
00050 public:
00052   typedef BinaryMorphologicalOpeningImageFilter         Self;
00053   typedef ImageToImageFilter<TInputImage, TOutputImage> Superclass;
00054   typedef SmartPointer<Self>                            Pointer;
00055   typedef SmartPointer<const Self>                      ConstPointer;
00056 
00058   itkNewMacro(Self);  
00059 
00061   itkTypeMacro(BinaryMorphologicalOpeningImageFilter, 
00062                ImageToImageFilter);
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 
00076   itkSetMacro(Kernel, KernelType);
00077 
00079   itkGetConstReferenceMacro(Kernel, KernelType);
00080 
00083   itkSetMacro(ForegroundValue, PixelType);
00084 
00087   itkGetMacro(ForegroundValue, PixelType);
00088 
00090   itkSetMacro(BackgroundValue, PixelType);
00091 
00093   itkGetMacro(BackgroundValue, PixelType);
00094 
00095 protected:
00096   BinaryMorphologicalOpeningImageFilter();
00097   ~BinaryMorphologicalOpeningImageFilter() {};
00098   void PrintSelf(std::ostream& os, Indent indent) const;
00099 
00105   void GenerateInputRequestedRegion();
00106 
00109   void  GenerateData ();
00110 
00111 private:
00112   BinaryMorphologicalOpeningImageFilter(const Self&); //purposely not implemented
00113   void operator=(const Self&); //purposely not implemented
00114 
00116   KernelType m_Kernel;
00117 
00118   PixelType m_ForegroundValue;
00119   
00120   PixelType m_BackgroundValue;
00121  
00122 }; // end of class
00123 
00124 } // end namespace itk
00125   
00126 #ifndef ITK_MANUAL_INSTANTIATION
00127 #include "itkBinaryMorphologicalOpeningImageFilter.txx"
00128 #endif
00129 
00130 #endif
00131 

Generated at Tue Jul 29 19:13:07 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000