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

itkAnisotropicFourthOrderLevelSetImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkAnisotropicFourthOrderLevelSetImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/09/11 00:16:41 $
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 _itkAnisotropicFourthOrderLevelSetImageFilter_h_
00018 #define _itkAnisotropicFourthOrderLevelSetImageFilter_h_
00019 
00020 #include "itkLevelSetFunctionWithRefitTerm.h"
00021 #include "itkSparseFieldFourthOrderLevelSetImageFilter.h"
00022 
00023 namespace itk {
00024 
00081 template <class TInputImage, class TOutputImage>
00082 class ITK_EXPORT AnisotropicFourthOrderLevelSetImageFilter
00083   : public SparseFieldFourthOrderLevelSetImageFilter <TInputImage, TOutputImage>
00084 {
00085 public:
00086 
00088   typedef AnisotropicFourthOrderLevelSetImageFilter Self;
00089   typedef SparseFieldFourthOrderLevelSetImageFilter <TInputImage,
00090                                                      TOutputImage> Superclass;
00091   typedef SmartPointer<Self> Pointer;
00092   typedef SmartPointer<const Self> ConstPointer;
00093 
00095   itkTypeMacro(AnisotropicFourthOrderLevelSetImageFilter,
00096                SparseFieldFourthOrderLevelSetImageFilter);
00097 
00099   itkNewMacro( Self );
00100 
00102   typedef typename Superclass::SparseImageType SparseImageType;
00103 
00106   typedef LevelSetFunctionWithRefitTerm <TOutputImage,SparseImageType> FunctionType;
00107 
00109   typedef typename FunctionType::RadiusType RadiusType;
00110 
00111   itkGetMacro(MaxFilterIteration,unsigned int);
00112   itkSetMacro(MaxFilterIteration,unsigned int);
00113   
00114 protected:
00115   AnisotropicFourthOrderLevelSetImageFilter();
00116   ~AnisotropicFourthOrderLevelSetImageFilter() {};
00117   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00118   
00120   virtual bool Halt()
00121   {
00122     if (this->GetElapsedIterations()==m_MaxFilterIteration) return true;
00123     else return false;
00124   }
00126 
00127 private:
00128   AnisotropicFourthOrderLevelSetImageFilter(const Self&);
00129   //purposely not implemented
00130   void operator=(const Self&); //purposely not implemented
00131 
00133   typename FunctionType::Pointer m_Function;
00134 
00136   unsigned int m_MaxFilterIteration;
00137 
00138 };
00139 
00140 } // end namespace itk
00141 
00142 #ifndef ITK_MANUAL_INSTANTIATION
00143 #include "itkAnisotropicFourthOrderLevelSetImageFilter.txx"
00144 #endif
00145 
00146 #endif
00147 

Generated at Sun Mar 11 23:27:19 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000