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

itkGrayscaleGeodesicDilateImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGrayscaleGeodesicDilateImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/08/23 15:09:01 $
00007   Version:   $Revision: 1.4 $
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 __itkGrayscaleGeodesicDilateImageFilter_h
00018 #define __itkGrayscaleGeodesicDilateImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk {
00023 
00061 template<class TInputImage, class TOutputImage>
00062 class ITK_EXPORT GrayscaleGeodesicDilateImageFilter : 
00063     public ImageToImageFilter<TInputImage, TOutputImage>
00064 {
00065 public:
00067   typedef GrayscaleGeodesicDilateImageFilter Self;
00068   typedef ImageToImageFilter<TInputImage, TOutputImage>
00069   Superclass;
00070   typedef SmartPointer<Self>        Pointer;
00071   typedef SmartPointer<const Self>  ConstPointer;
00072 
00074   typedef TInputImage MarkerImageType;
00075   typedef TInputImage MaskImageType;
00076   typedef TOutputImage OutputImageType;
00077   typedef typename MarkerImageType::Pointer        MarkerImagePointer;
00078   typedef typename MarkerImageType::ConstPointer   MarkerImageConstPointer;
00079   typedef typename MarkerImageType::RegionType     MarkerImageRegionType;
00080   typedef typename MarkerImageType::PixelType      MarkerImagePixelType;
00081   typedef typename MaskImageType::Pointer          MaskImagePointer;
00082   typedef typename MaskImageType::ConstPointer     MaskImageConstPointer;
00083   typedef typename MaskImageType::RegionType       MaskImageRegionType;
00084   typedef typename MaskImageType::PixelType        MaskImagePixelType;
00085   typedef typename OutputImageType::Pointer        OutputImagePointer;
00086   typedef typename OutputImageType::ConstPointer   OutputImageConstPointer;
00087   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00088   typedef typename OutputImageType::PixelType      OutputImagePixelType;
00089   
00091   itkStaticConstMacro(MarkerImageDimension, unsigned int,
00092                       TInputImage::ImageDimension);
00093   itkStaticConstMacro(MaskImageDimension, unsigned int,
00094                       TInputImage::ImageDimension);
00095   itkStaticConstMacro(OutputImageDimension, unsigned int,
00096                       TOutputImage::ImageDimension);
00097 
00099   itkNewMacro(Self);  
00100 
00102   itkTypeMacro(GrayscaleGeodesicDilateImageFilter, 
00103                ImageToImageFilter);
00104   
00108   void SetMarkerImage(const MarkerImageType *);
00109   const MarkerImageType* GetMarkerImage();
00110 
00114   void SetMaskImage(const MaskImageType *);
00115   const MaskImageType* GetMaskImage();
00116 
00120   itkSetMacro(RunOneIteration, bool);
00121   itkGetMacro(RunOneIteration, bool);
00122   itkBooleanMacro(RunOneIteration);
00123 
00126   itkGetMacro(NumberOfIterationsUsed, unsigned long);
00127 
00134   itkSetMacro(FullyConnected, bool);
00135   itkGetConstReferenceMacro(FullyConnected, bool);
00136   itkBooleanMacro(FullyConnected);
00137 
00138 protected:
00139   GrayscaleGeodesicDilateImageFilter();
00140   ~GrayscaleGeodesicDilateImageFilter() {};
00141   void PrintSelf(std::ostream& os, Indent indent) const;
00142 
00149   void GenerateInputRequestedRegion();
00150 
00155   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00156 
00163   void GenerateData();
00164   
00169   void ThreadedGenerateData (const OutputImageRegionType& 
00170                              outputRegionForThread,
00171                              int threadId) ;
00172 
00173 private:
00174   GrayscaleGeodesicDilateImageFilter(const Self&); //purposely not implemented
00175   void operator=(const Self&); //purposely not implemented
00176 
00177   bool m_RunOneIteration;
00178   unsigned long m_NumberOfIterationsUsed;
00179   bool m_FullyConnected;
00180 
00181 } ; // end of class
00182 
00183 } // end namespace itk
00184   
00185 #ifndef ITK_MANUAL_INSTANTIATION
00186 #include "itkGrayscaleGeodesicDilateImageFilter.txx"
00187 #endif
00188 
00189 #endif
00190 
00191 

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