00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkIsotropicFourthOrderLevelSetImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-04-23 03:53:35 $ 00007 Version: $Revision: 1.7 $ 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 __itkIsotropicFourthOrderLevelSetImageFilter_h 00018 #define __itkIsotropicFourthOrderLevelSetImageFilter_h 00019 00020 #include "itkLevelSetFunctionWithRefitTerm.h" 00021 #include "itkSparseFieldFourthOrderLevelSetImageFilter.h" 00022 00023 namespace itk { 00024 00072 template <class TInputImage, class TOutputImage> 00073 class ITK_EXPORT IsotropicFourthOrderLevelSetImageFilter 00074 : public SparseFieldFourthOrderLevelSetImageFilter <TInputImage, TOutputImage> 00075 { 00076 public: 00077 00079 typedef IsotropicFourthOrderLevelSetImageFilter Self; 00080 typedef SparseFieldFourthOrderLevelSetImageFilter <TInputImage,TOutputImage> 00081 Superclass; 00082 typedef SmartPointer<Self> Pointer; 00083 typedef SmartPointer<const Self> ConstPointer; 00084 00086 itkTypeMacro(IsotropicFourthOrderLevelSetImageFilter, 00087 SparseFieldFourthOrderLevelSetImageFilter); 00088 00090 itkNewMacro (Self); 00091 00093 typedef typename Superclass::SparseImageType SparseImageType; 00094 00097 typedef LevelSetFunctionWithRefitTerm <TOutputImage,SparseImageType> FunctionType; 00098 00100 typedef typename FunctionType::RadiusType RadiusType; 00101 00102 itkGetConstMacro(MaxFilterIteration,unsigned int); 00103 itkSetMacro(MaxFilterIteration,unsigned int); 00104 00105 protected: 00106 IsotropicFourthOrderLevelSetImageFilter(); 00107 ~IsotropicFourthOrderLevelSetImageFilter() {}; 00108 virtual void PrintSelf(std::ostream& os, Indent indent) const; 00109 00111 typename FunctionType::Pointer m_Function; 00112 00114 unsigned int m_MaxFilterIteration; 00115 00117 virtual bool Halt() 00118 { 00119 if (this->GetElapsedIterations() == m_MaxFilterIteration) return true; 00120 else return false; 00121 } 00123 00124 private: 00125 IsotropicFourthOrderLevelSetImageFilter(const Self&); 00126 //purposely not implemented 00127 void operator=(const Self&); //purposely not implemented 00128 }; 00129 00130 } // end namespace itk 00131 00132 #ifndef ITK_MANUAL_INSTANTIATION 00133 #include "itkIsotropicFourthOrderLevelSetImageFilter.txx" 00134 #endif 00135 00136 #endif 00137