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: 2003/02/07 20:38:14 $
00007   Version:   $Revision: 1.13 $
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 
00035 template <class TInputImage, class TOutputImage, class TInputMesh, 
00036   class TOutputMesh>
00037 class ITK_EXPORT HybridFilter:
00038   public ImageToImageFilter<TInputImage,TOutputImage>
00039 {
00040 
00041 public:
00043   typedef HybridFilter  Self;
00044   typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
00045   typedef SmartPointer<Self>                Pointer;
00046   typedef SmartPointer<const Self>      ConstPointer;
00047 
00049   itkNewMacro(Self);
00050 
00052   typedef BalloonForceFilter<TInputMesh,TOutputMesh>  BalloonForceFilterType;
00053 
00055   typedef GibbsPriorFilter<TInputImage,TOutputImage>  GibbsPriorFilterType;
00056 
00058   typedef typename BalloonForceFilterType::Pointer  BalloonForceFilterPointer;
00059 
00061   typedef typename GibbsPriorFilterType::Pointer  GibbsPriorFilterPointer;                                  
00063   typedef ImageRegionIteratorWithIndex< TOutputImage > OutputImageIterator;
00064   
00066   itkStaticConstMacro(ImageDimension, unsigned int,
00067                       TInputImage::ImageDimension);
00068 
00071   void SetPotential( void );
00072 
00075   void SetObjectRegion( void );
00076 
00078   void SetBalloonForceFilter(BalloonForceFilterPointer  bffilter);
00079   void SetGibbsPriorFilter(GibbsPriorFilterPointer  gpfilter);
00080 
00082   void Advance();
00083   void SetGibbsInput();
00084 
00085 protected:
00086   HybridFilter();
00087   virtual ~HybridFilter() {};
00088   
00090   virtual void GenerateData();
00091 
00092 private:
00093   HybridFilter(const Self&); //purposely not implemented
00094   void operator=(const Self&); //purposely not implemented
00095   
00096   BalloonForceFilterPointer   m_BalloonForceFilter;
00097   GibbsPriorFilterPointer   m_GibbsPriorFilter;
00098   int m_IterNum;
00099 
00100 };
00101 
00102 } // end namespace itk
00103 
00104 #ifndef ITK_MANUAL_INSTANTIATION
00105 #include "itkHybridFilter.txx"
00106 #endif
00107 
00108 #endif

Generated at Fri May 21 01:14:51 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000