ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkIsotropicFourthOrderLevelSetImageFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkIsotropicFourthOrderLevelSetImageFilter_h
00019 #define __itkIsotropicFourthOrderLevelSetImageFilter_h
00020 
00021 #include "itkSparseFieldFourthOrderLevelSetImageFilter.h"
00022 
00023 namespace itk
00024 {
00073 template< class TInputImage, class TOutputImage >
00074 class ITK_EXPORT IsotropicFourthOrderLevelSetImageFilter:
00075   public SparseFieldFourthOrderLevelSetImageFilter< TInputImage, TOutputImage >
00076 {
00077 public:
00078 
00080   typedef IsotropicFourthOrderLevelSetImageFilter Self;
00081   typedef SparseFieldFourthOrderLevelSetImageFilter< TInputImage, TOutputImage >
00082   Superclass;
00083   typedef SmartPointer< Self >       Pointer;
00084   typedef SmartPointer< const Self > ConstPointer;
00085 
00087   itkTypeMacro(IsotropicFourthOrderLevelSetImageFilter,
00088                SparseFieldFourthOrderLevelSetImageFilter);
00089 
00091   itkNewMacro (Self);
00092 
00094   typedef typename Superclass::SparseImageType SparseImageType;
00095 
00098   typedef LevelSetFunctionWithRefitTerm< TOutputImage, SparseImageType > FunctionType;
00099 
00101   typedef typename FunctionType::RadiusType RadiusType;
00102 
00103   itkGetConstMacro(MaxFilterIteration, unsigned int);
00104   itkSetMacro(MaxFilterIteration, unsigned int);
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 } // end namespace itk
00130 
00131 #ifndef ITK_MANUAL_INSTANTIATION
00132 #include "itkIsotropicFourthOrderLevelSetImageFilter.hxx"
00133 #endif
00134 
00135 #endif
00136