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

itkClosingByReconstructionImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkClosingByReconstructionImageFilter.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 __itkClosingByReconstructionImageFilter_h
00018 #define __itkClosingByReconstructionImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk {
00023 
00043 template<class TInputImage, class TOutputImage, class TKernel>
00044 class ITK_EXPORT ClosingByReconstructionImageFilter : 
00045     public ImageToImageFilter<TInputImage, TOutputImage>
00046 {
00047 public:
00049   typedef ClosingByReconstructionImageFilter Self;
00050   typedef ImageToImageFilter<TInputImage, TOutputImage>
00051   Superclass;
00052   typedef SmartPointer<Self>        Pointer;
00053   typedef SmartPointer<const Self>  ConstPointer;
00054 
00056   typedef TInputImage InputImageType;
00057   typedef TOutputImage OutputImageType;
00058   typedef typename InputImageType::Pointer         InputImagePointer;
00059   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00060   typedef typename InputImageType::RegionType      InputImageRegionType;
00061   typedef typename InputImageType::PixelType       InputImagePixelType;
00062   typedef typename OutputImageType::Pointer        OutputImagePointer;
00063   typedef typename OutputImageType::ConstPointer   OutputImageConstPointer;
00064   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00065   typedef typename OutputImageType::PixelType      OutputImagePixelType;
00066   
00068   typedef TKernel KernelType;
00069 
00071   itkStaticConstMacro(InputImageDimension, unsigned int,
00072                       TInputImage::ImageDimension);
00073   itkStaticConstMacro(OutputImageDimension, unsigned int,
00074                       TOutputImage::ImageDimension);
00075 
00077   itkNewMacro(Self);  
00078 
00080   itkTypeMacro(ClosingByReconstructionImageFilter, 
00081                ImageToImageFilter);
00082 
00084   itkSetMacro(Kernel, KernelType);
00085   
00087   itkGetConstReferenceMacro(Kernel, KernelType);
00088 
00095   itkSetMacro(FullyConnected, bool);
00096   itkGetConstReferenceMacro(FullyConnected, bool);
00097   itkBooleanMacro(FullyConnected);
00098   
00099 protected:
00100   ClosingByReconstructionImageFilter();
00101   ~ClosingByReconstructionImageFilter() {};
00102   void PrintSelf(std::ostream& os, Indent indent) const;
00103 
00107   void GenerateInputRequestedRegion() ;
00108 
00110   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00111   
00112   void GenerateData();
00113   
00114 
00115 private:
00116   ClosingByReconstructionImageFilter(const Self&); //purposely not implemented
00117   void operator=(const Self&); //purposely not implemented
00118 
00120   KernelType m_Kernel ;
00121   bool                m_FullyConnected;
00122 } ; // end of class
00123 
00124 } // end namespace itk
00125   
00126 #ifndef ITK_MANUAL_INSTANTIATION
00127 #include "itkClosingByReconstructionImageFilter.txx"
00128 #endif
00129 
00130 #endif
00131 
00132 

Generated at Wed May 24 22:57:08 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000