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 
00080   itkStaticConstMacro(InputImageDimension, unsigned int,
00081                       TInputImage::ImageDimension);
00082   itkStaticConstMacro(OutputImageDimension, unsigned int,
00083                       TOutputImage::ImageDimension);
00084   itkStaticConstMacro(KernelDimension, unsigned int,
00085                       TKernel::NeighborhoodDimension);
00087 
00088 #ifdef ITK_USE_CONCEPT_CHECKING
00089 
00090   itkConceptMacro(SameTypeCheck,
00091     (Concept::SameType<PixelType, typename TOutputImage::PixelType>));
00092   itkConceptMacro(SameDimensionCheck1,
00093     (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00094   itkConceptMacro(SameDimensionCheck2,
00095     (Concept::SameDimension<InputImageDimension, KernelDimension>));
00096   itkConceptMacro(InputLessThanComparableCheck,
00097     (Concept::LessThanComparable<PixelType>));
00098   itkConceptMacro(InputGreaterThanComparableCheck,
00099     (Concept::GreaterThanComparable<PixelType>));
00100   itkConceptMacro(KernelGreaterThanIntCheck,
00101     (Concept::GreaterThanComparable<typename TKernel::PixelType, int>));
00102 
00104 #endif
00105 
00106 protected:
00107   GrayscaleMorphologicalOpeningImageFilter();
00108   ~GrayscaleMorphologicalOpeningImageFilter() {};
00109   void PrintSelf(std::ostream& os, Indent indent) const;
00110 
00114   void GenerateInputRequestedRegion() ;
00115 
00117   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00118 
00121   void  GenerateData ();
00122 
00123 private:
00124   GrayscaleMorphologicalOpeningImageFilter(const Self&); //purposely not implemented
00125   void operator=(const Self&); //purposely not implemented
00126 
00128   KernelType m_Kernel ;
00129 
00130 } ; // end of class
00131 
00132 } // end namespace itk
00133   
00134 #ifndef ITK_MANUAL_INSTANTIATION
00135 #include "itkGrayscaleMorphologicalOpeningImageFilter.txx"
00136 #endif
00137 
00138 #endif
00139 
00140 
00141 

Generated at Sun Sep 23 12:47:44 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000