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

itkHybridFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkHybridFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/11 19:39:01 $
00007   Version:   $Revision: 1.12 $
00008 
00009   Copyright (c) 2002 Insight 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 __itkHybridFilter_h
00018 #define __itkHybridFilter_h
00019 
00020 #include "itkBalloonForceFilter.h"
00021 #include "itkGibbsPriorFilter.h"
00022 #include "itkImageRegionIteratorWithIndex.h"
00023 
00024 namespace itk
00025 {
00026 
00037 template <class TInputImage, class TOutputImage, class TInputMesh, 
00038   class TOutputMesh>
00039 class ITK_EXPORT HybridFilter:
00040   public ImageToImageFilter<TInputImage,TOutputImage>
00041 {
00042 
00043 public:
00045   typedef HybridFilter  Self;
00046   typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
00047   typedef SmartPointer<Self>                Pointer;
00048   typedef SmartPointer<const Self>      ConstPointer;
00049 
00051   itkNewMacro(Self);
00052 
00054   typedef BalloonForceFilter<TInputMesh,TOutputMesh>  BalloonForceFilterType;
00055 
00057   typedef GibbsPriorFilter<TInputImage,TOutputImage>  GibbsPriorFilterType;
00058 
00060   typedef typename BalloonForceFilterType::Pointer  BalloonForceFilterPointer;
00061 
00063   typedef typename GibbsPriorFilterType::Pointer  GibbsPriorFilterPointer;                                  
00065   typedef ImageRegionIteratorWithIndex< TOutputImage > OutputImageIterator;
00066   
00068   itkStaticConstMacro(ImageDimension, unsigned int,
00069                       TInputImage::ImageDimension);
00070 
00073   void SetPotential( void );
00074 
00077   void SetObjectRegion( void );
00078 
00080   void SetBalloonForceFilter(BalloonForceFilterPointer  bffilter);
00081   void SetGibbsPriorFilter(GibbsPriorFilterPointer  gpfilter);
00082 
00084   void Advance();
00085   void SetGibbsInput();
00086 
00087 protected:
00088   HybridFilter();
00089   virtual ~HybridFilter() {};
00090   
00092   virtual void GenerateData();
00093 
00094 private:
00095   HybridFilter(const Self&); //purposely not implemented
00096   void operator=(const Self&); //purposely not implemented
00097   
00098   BalloonForceFilterPointer   m_BalloonForceFilter;
00099   GibbsPriorFilterPointer   m_GibbsPriorFilter;
00100   int m_IterNum;
00101 
00102 };
00103 
00104 } // end namespace itk
00105 
00106 #ifndef ITK_MANUAL_INSTANTIATION
00107 #include "itkHybridFilter.txx"
00108 #endif
00109 
00110 #endif

Generated at Wed Mar 12 01:12:59 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000