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

itkUnsharpMaskLevelSetImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkUnsharpMaskLevelSetImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/09/10 14:28:40 $
00007   Version:   $Revision: 1.5 $
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 _itkUnsharpMaskLevelSetImageFilter_h_
00018 #define _itkUnsharpMaskLevelSetImageFilter_h_
00019 
00020 #include "itkLevelSetFunctionWithRefitTerm.h"
00021 #include "itkSparseFieldFourthOrderLevelSetImageFilter.h"
00022 
00023 namespace itk {
00024 
00065 template <class TInputImage, class TOutputImage>
00066 class ITK_EXPORT UnsharpMaskLevelSetImageFilter
00067   : public SparseFieldFourthOrderLevelSetImageFilter <TInputImage, TOutputImage>
00068 {
00069 public:
00071   typedef UnsharpMaskLevelSetImageFilter Self;
00072   typedef SparseFieldFourthOrderLevelSetImageFilter <TInputImage,
00073                                                      TOutputImage> Superclass;
00074   typedef SmartPointer<Self> Pointer;
00075   typedef SmartPointer<const Self> ConstPointer;
00076 
00078   itkTypeMacro(UnsharpMaskLevelSetImageFilter,
00079                SparseFieldFourthOrderLevelSetImageFilter);
00080 
00082   itkNewMacro( Self );
00083 
00085   typedef typename Superclass::SparseImageType SparseImageType;
00086 
00089   typedef LevelSetFunctionWithRefitTerm <TOutputImage,SparseImageType> FunctionType;
00090 
00092   typedef typename FunctionType::RadiusType RadiusType;
00093 
00094   itkGetMacro(MaxFilterIteration,unsigned int);
00095   itkSetMacro(MaxFilterIteration,unsigned int);
00096   
00097 protected:
00098   UnsharpMaskLevelSetImageFilter();
00099   ~UnsharpMaskLevelSetImageFilter() {};
00100   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00101   
00103   typename FunctionType::Pointer m_Function;
00104 
00106   unsigned int m_MaxFilterIteration;
00107 
00109   virtual bool Halt()
00110   {
00111     if (this->GetElapsedIterations()==m_MaxFilterIteration) return true;
00112     else return false;
00113   }
00114 
00115 private:
00116   UnsharpMaskLevelSetImageFilter(const Self&);
00117   //purposely not implemented
00118   void operator=(const Self&); //purposely not implemented
00119 };
00120 
00121 } // end namespace itk
00122 
00123 #ifndef ITK_MANUAL_INSTANTIATION
00124 #include "itkUnsharpMaskLevelSetImageFilter.txx"
00125 #endif
00126 
00127 #endif

Generated at Thu May 25 00:10:19 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000