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

itkWhiteTopHatImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkWhiteTopHatImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/04/04 13:13:52 $
00007   Version:   $Revision: 1.2 $
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 #ifndef __itkWhiteTopHatImageFilter_h
00018 #define __itkWhiteTopHatImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk {
00023 
00035 template<class TInputImage, class TOutputImage, class TKernel>
00036 class ITK_EXPORT WhiteTopHatImageFilter : 
00037     public ImageToImageFilter<TInputImage, TOutputImage>
00038 {
00039 public:
00041   typedef WhiteTopHatImageFilter Self;
00042   typedef ImageToImageFilter<TInputImage, TOutputImage>
00043   Superclass;
00044   typedef SmartPointer<Self>        Pointer;
00045   typedef SmartPointer<const Self>  ConstPointer;
00046 
00048   typedef TInputImage InputImageType;
00049   typedef TOutputImage OutputImageType;
00050   typedef typename InputImageType::Pointer         InputImagePointer;
00051   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00052   typedef typename InputImageType::RegionType      InputImageRegionType;
00053   typedef typename InputImageType::PixelType       InputImagePixelType;
00054   typedef typename OutputImageType::Pointer        OutputImagePointer;
00055   typedef typename OutputImageType::ConstPointer   OutputImageConstPointer;
00056   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00057   typedef typename OutputImageType::PixelType      OutputImagePixelType;
00058 
00060   typedef TKernel KernelType;
00061 
00063   itkStaticConstMacro(InputImageDimension, unsigned int,
00064                       TInputImage::ImageDimension);
00065   itkStaticConstMacro(OutputImageDimension, unsigned int,
00066                       TOutputImage::ImageDimension);
00068 
00070   itkNewMacro(Self);  
00071 
00073   itkTypeMacro(WhiteTopHatImageFilter, 
00074                ImageToImageFilter);
00075 
00077   itkSetMacro(Kernel, KernelType);
00078 
00080   itkGetConstReferenceMacro(Kernel, KernelType);
00081 
00082 #ifdef ITK_USE_CONCEPT_CHECKING
00083 
00084   itkConceptMacro(InputAdditiveOperatorsCheck,
00085     (Concept::AdditiveOperators<InputImagePixelType>));
00086   itkConceptMacro(InputConvertibleToOutputCheck,
00087     (Concept::Convertible<InputImagePixelType, OutputImagePixelType>));
00088   itkConceptMacro(InputGreaterThanComparableCheck,
00089     (Concept::GreaterThanComparable<InputImagePixelType>));
00090   itkConceptMacro(KernelGreaterThanIntCheck,
00091     (Concept::GreaterThanComparable<typename TKernel::PixelType, int>));
00092 
00094 #endif
00095 
00096 protected:
00097   WhiteTopHatImageFilter();
00098   ~WhiteTopHatImageFilter() {};
00099   void PrintSelf(std::ostream& os, Indent indent) const;
00100 
00104   void GenerateInputRequestedRegion() ;
00105 
00107   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00108 
00109   void GenerateData();
00110   
00111 
00112 private:
00113   WhiteTopHatImageFilter(const Self&); //purposely not implemented
00114   void operator=(const Self&); //purposely not implemented
00115 
00117   KernelType m_Kernel ;
00118 } ; // end of class
00119 
00120 } // end namespace itk
00121   
00122 #ifndef ITK_MANUAL_INSTANTIATION
00123 #include "itkWhiteTopHatImageFilter.txx"
00124 #endif
00125 
00126 #endif
00127 
00128 
00129 

Generated at Sun Sep 23 14:46:53 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000