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: 2009-04-23 03:53:34 $
00007   Version:   $Revision: 1.8 $
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   itkGetConstMacro(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)
00123       {
00124       return true;
00125       }
00126     else
00127       {
00128       return false;
00129       }
00130     }
00132 
00133 private:
00134   AnisotropicFourthOrderLevelSetImageFilter(const Self&);
00135   //purposely not implemented
00136   void operator=(const Self&); //purposely not implemented
00137 
00139   typename FunctionType::Pointer m_Function;
00140 
00142   unsigned int m_MaxFilterIteration;
00143 
00144 };
00145 
00146 } // end namespace itk
00147 
00148 #ifndef ITK_MANUAL_INSTANTIATION
00149 #include "itkAnisotropicFourthOrderLevelSetImageFilter.txx"
00150 #endif
00151 
00152 #endif
00153 

Generated at Fri Apr 16 17:47:31 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000