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

itkReconstructionByErosionImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkReconstructionByErosionImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/08/23 15:08:59 $
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 __itkReconstructionByErosionImageFilter_h
00018 #define __itkReconstructionByErosionImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk {
00023 
00053 template<class TInputImage, class TOutputImage>
00054 class ITK_EXPORT ReconstructionByErosionImageFilter : 
00055     public ImageToImageFilter<TInputImage, TOutputImage>
00056 {
00057 public:
00059   typedef ReconstructionByErosionImageFilter Self;
00060   typedef ImageToImageFilter<TInputImage, TOutputImage>
00061   Superclass;
00062   typedef SmartPointer<Self>        Pointer;
00063   typedef SmartPointer<const Self>  ConstPointer;
00064 
00066   typedef TInputImage MarkerImageType;
00067   typedef TInputImage MaskImageType;
00068   typedef TOutputImage OutputImageType;
00069   typedef typename MarkerImageType::Pointer        MarkerImagePointer;
00070   typedef typename MarkerImageType::ConstPointer   MarkerImageConstPointer;
00071   typedef typename MarkerImageType::RegionType     MarkerImageRegionType;
00072   typedef typename MarkerImageType::PixelType      MarkerImagePixelType;
00073   typedef typename MaskImageType::Pointer          MaskImagePointer;
00074   typedef typename MaskImageType::ConstPointer     MaskImageConstPointer;
00075   typedef typename MaskImageType::RegionType       MaskImageRegionType;
00076   typedef typename MaskImageType::PixelType        MaskImagePixelType;
00077   typedef typename OutputImageType::Pointer        OutputImagePointer;
00078   typedef typename OutputImageType::ConstPointer   OutputImageConstPointer;
00079   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00080   typedef typename OutputImageType::PixelType      OutputImagePixelType;
00081   
00083   itkStaticConstMacro(MarkerImageDimension, unsigned int,
00084                       TInputImage::ImageDimension);
00085   itkStaticConstMacro(MaskImageDimension, unsigned int,
00086                       TInputImage::ImageDimension);
00087   itkStaticConstMacro(OutputImageDimension, unsigned int,
00088                       TOutputImage::ImageDimension);
00089 
00091   itkNewMacro(Self);  
00092 
00094   itkTypeMacro(ReconstructionByErosionImageFilter, 
00095                ImageToImageFilter);
00096   
00100   void SetMarkerImage(const MarkerImageType *);
00101   const MarkerImageType* GetMarkerImage();
00102 
00106   void SetMaskImage(const MaskImageType *);
00107   const MaskImageType* GetMaskImage();
00108 
00115   itkSetMacro(FullyConnected, bool);
00116   itkGetConstReferenceMacro(FullyConnected, bool);
00117   itkBooleanMacro(FullyConnected);
00118 
00119 protected:
00120   ReconstructionByErosionImageFilter();
00121   ~ReconstructionByErosionImageFilter() {};
00122   void PrintSelf(std::ostream& os, Indent indent) const;
00123 
00130   void GenerateInputRequestedRegion();
00131 
00136   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00137 
00144   void GenerateData();
00145   
00146 private:
00147   ReconstructionByErosionImageFilter(const Self&); //purposely not implemented
00148   void operator=(const Self&); //purposely not implemented
00149 
00150   bool m_FullyConnected;
00151 
00152 } ; // end of class
00153 
00154 } // end namespace itk
00155   
00156 #ifndef ITK_MANUAL_INSTANTIATION
00157 #include "itkReconstructionByErosionImageFilter.txx"
00158 #endif
00159 
00160 #endif
00161 
00162 

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