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

itkOpeningByReconstructionImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkOpeningByReconstructionImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/08/23 15:16:38 $
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 #ifndef __itkOpeningByReconstructionImageFilter_h
00018 #define __itkOpeningByReconstructionImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk {
00023 
00046 template<class TInputImage, class TOutputImage, class TKernel>
00047 class ITK_EXPORT OpeningByReconstructionImageFilter : 
00048     public ImageToImageFilter<TInputImage, TOutputImage>
00049 {
00050 public:
00052   typedef OpeningByReconstructionImageFilter Self;
00053   typedef ImageToImageFilter<TInputImage, TOutputImage>
00054   Superclass;
00055   typedef SmartPointer<Self>        Pointer;
00056   typedef SmartPointer<const Self>  ConstPointer;
00057 
00059   typedef TInputImage InputImageType;
00060   typedef TOutputImage OutputImageType;
00061   typedef typename InputImageType::Pointer         InputImagePointer;
00062   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00063   typedef typename InputImageType::RegionType      InputImageRegionType;
00064   typedef typename InputImageType::PixelType       InputImagePixelType;
00065   typedef typename OutputImageType::Pointer        OutputImagePointer;
00066   typedef typename OutputImageType::ConstPointer   OutputImageConstPointer;
00067   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00068   typedef typename OutputImageType::PixelType      OutputImagePixelType;
00069   
00071   typedef TKernel KernelType;
00072 
00074   itkStaticConstMacro(InputImageDimension, unsigned int,
00075                       TInputImage::ImageDimension);
00076   itkStaticConstMacro(OutputImageDimension, unsigned int,
00077                       TOutputImage::ImageDimension);
00078 
00080   itkNewMacro(Self);  
00081 
00083   itkTypeMacro(OpeningByReconstructionImageFilter, 
00084                ImageToImageFilter);
00085 
00087   itkSetMacro(Kernel, KernelType);
00088   
00090   itkGetConstReferenceMacro(Kernel, KernelType);
00091 
00098   itkSetMacro(FullyConnected, bool);
00099   itkGetConstReferenceMacro(FullyConnected, bool);
00100   itkBooleanMacro(FullyConnected);
00101   
00102 protected:
00103   OpeningByReconstructionImageFilter();
00104   ~OpeningByReconstructionImageFilter() {};
00105   void PrintSelf(std::ostream& os, Indent indent) const;
00106 
00110   void GenerateInputRequestedRegion() ;
00111 
00113   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00114   
00115   void GenerateData();
00116   
00117 
00118 private:
00119   OpeningByReconstructionImageFilter(const Self&); //purposely not implemented
00120   void operator=(const Self&); //purposely not implemented
00121 
00123   KernelType m_Kernel ;
00124   bool                m_FullyConnected;
00125 } ; // end of class
00126 
00127 } // end namespace itk
00128   
00129 #ifndef ITK_MANUAL_INSTANTIATION
00130 #include "itkOpeningByReconstructionImageFilter.txx"
00131 #endif
00132 
00133 #endif
00134 
00135 

Generated at Wed May 24 23:48:28 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000