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:
00087   typedef AnisotropicFourthOrderLevelSetImageFilter Self;
00088   typedef SparseFieldFourthOrderLevelSetImageFilter <TInputImage,
00089                                                      TOutputImage> Superclass;
00090   typedef SmartPointer<Self> Pointer;
00091   typedef SmartPointer<const Self> ConstPointer;
00092 
00094   itkTypeMacro(AnisotropicFourthOrderLevelSetImageFilter,
00095                SparseFieldFourthOrderLevelSetImageFilter);
00096 
00098   itkNewMacro( Self );
00099 
00101   typedef typename Superclass::SparseImageType SparseImageType;
00102 
00105   typedef LevelSetFunctionWithRefitTerm <TOutputImage,SparseImageType> FunctionType;
00106 
00108   typedef typename FunctionType::RadiusType RadiusType;
00109 
00110   itkGetMacro(MaxFilterIteration,unsigned int);
00111   itkSetMacro(MaxFilterIteration,unsigned int);
00112   
00113 protected:
00114   AnisotropicFourthOrderLevelSetImageFilter();
00115   ~AnisotropicFourthOrderLevelSetImageFilter() {};
00116   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00117   
00119   virtual bool Halt()
00120   {
00121     if (this->GetElapsedIterations()==m_MaxFilterIteration) return true;
00122     else return false;
00123   }
00124 
00125 private:
00126   AnisotropicFourthOrderLevelSetImageFilter(const Self&);
00127   //purposely not implemented
00128   void operator=(const Self&); //purposely not implemented
00129 
00131   typename FunctionType::Pointer m_Function;
00132 
00134   unsigned int m_MaxFilterIteration;
00135 
00136 };
00137 
00138 } // end namespace itk
00139 
00140 #ifndef ITK_MANUAL_INSTANTIATION
00141 #include "itkAnisotropicFourthOrderLevelSetImageFilter.txx"
00142 #endif
00143 
00144 #endif

Generated at Wed May 24 22:46:06 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000