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: 2008-10-16 16:45:09 $
00007   Version:   $Revision: 1.6 $
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 typename MarkerImageType::Pointer        MarkerImagePointer;
00076   typedef typename MarkerImageType::ConstPointer   MarkerImageConstPointer;
00077   typedef typename MarkerImageType::RegionType     MarkerImageRegionType;
00078   typedef typename MarkerImageType::PixelType      MarkerImagePixelType;
00079   typedef TInputImage                              MaskImageType;
00080   typedef typename MaskImageType::Pointer          MaskImagePointer;
00081   typedef typename MaskImageType::ConstPointer     MaskImageConstPointer;
00082   typedef typename MaskImageType::RegionType       MaskImageRegionType;
00083   typedef typename MaskImageType::PixelType        MaskImagePixelType;
00084   typedef TOutputImage                             OutputImageType;
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);
00098 
00100   itkNewMacro(Self);  
00101 
00103   itkTypeMacro(GrayscaleGeodesicDilateImageFilter, 
00104                ImageToImageFilter);
00105 
00109   void SetMarkerImage(const MarkerImageType *);
00110   const MarkerImageType* GetMarkerImage();
00112 
00116   void SetMaskImage(const MaskImageType *);
00117   const MaskImageType* GetMaskImage();
00119 
00123   itkSetMacro(RunOneIteration, bool);
00124   itkGetMacro(RunOneIteration, bool);
00125   itkBooleanMacro(RunOneIteration);
00127 
00130   itkGetMacro(NumberOfIterationsUsed, unsigned long);
00131 
00138   itkSetMacro(FullyConnected, bool);
00139   itkGetConstReferenceMacro(FullyConnected, bool);
00140   itkBooleanMacro(FullyConnected);
00142 
00143 #ifdef ITK_USE_CONCEPT_CHECKING
00144 
00145   itkConceptMacro(SameDimensionCheck,
00146     (Concept::SameDimension<MarkerImageDimension, OutputImageDimension>));
00147   itkConceptMacro(InputComparableCheck,
00148     (Concept::Comparable<MarkerImagePixelType>));
00149   itkConceptMacro(InputConvertibleToOutputCheck,
00150     (Concept::Convertible<MarkerImagePixelType, OutputImagePixelType>));
00151 
00153 #endif
00154 
00155 protected:
00156   GrayscaleGeodesicDilateImageFilter();
00157   ~GrayscaleGeodesicDilateImageFilter() {};
00158   void PrintSelf(std::ostream& os, Indent indent) const;
00159 
00166   void GenerateInputRequestedRegion();
00167 
00172   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00173 
00180   void GenerateData();
00181 
00186   void ThreadedGenerateData (const OutputImageRegionType& 
00187                              outputRegionForThread,
00188                              int threadId);
00189 
00190 private:
00191   GrayscaleGeodesicDilateImageFilter(const Self&); //purposely not implemented
00192   void operator=(const Self&); //purposely not implemented
00193 
00194   bool          m_RunOneIteration;
00195   unsigned long m_NumberOfIterationsUsed;
00196   bool          m_FullyConnected;
00197 
00198 }; // end of class
00199 
00200 } // end namespace itk
00201   
00202 #ifndef ITK_MANUAL_INSTANTIATION
00203 #include "itkGrayscaleGeodesicDilateImageFilter.txx"
00204 #endif
00205 
00206 #endif
00207 

Generated at Sat Feb 28 12:32:53 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000