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

itkAnisotropicDiffusionImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkAnisotropicDiffusionImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-25 12:27:04 $
00007   Version:   $Revision: 1.43 $
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 __itkAnisotropicDiffusionImageFilter_h
00018 #define __itkAnisotropicDiffusionImageFilter_h
00019 
00020 #include "itkDenseFiniteDifferenceImageFilter.h"
00021 #include "itkAnisotropicDiffusionFunction.h"
00022 #include "itkNumericTraits.h"
00023 
00024 #define ITK_LEAN_AND_MEAN
00025 
00026 namespace itk {
00027 
00071 template <class TInputImage, class TOutputImage>
00072 class ITK_EXPORT AnisotropicDiffusionImageFilter
00073   : public DenseFiniteDifferenceImageFilter<TInputImage, TOutputImage>
00074 {
00075 public:
00077   typedef AnisotropicDiffusionImageFilter Self;
00078   typedef DenseFiniteDifferenceImageFilter<TInputImage, TOutputImage>
00079                                           Superclass;
00080   typedef SmartPointer<Self>              Pointer;
00081   typedef SmartPointer<const Self>        ConstPointer;
00082 
00084   itkTypeMacro(AnisotropicDiffusionImageFilter,
00085                DenseFiniteDifferenceImageFilter);
00086 
00088   typedef typename Superclass::InputImageType   InputImageType;
00089   typedef typename Superclass::OutputImageType  OutputImageType;
00090   typedef typename Superclass::UpdateBufferType UpdateBufferType;
00091 
00094   itkStaticConstMacro(ImageDimension, unsigned int,Superclass::ImageDimension);
00095 
00098   typedef typename Superclass::PixelType    PixelType;
00099   typedef typename Superclass::TimeStepType TimeStepType;
00100 
00102   itkSetMacro(TimeStep, TimeStepType);
00103   itkGetConstMacro(TimeStep, TimeStepType);
00105 
00108   itkSetMacro(ConductanceParameter, double);
00109   itkGetConstMacro(ConductanceParameter, double);
00111 
00114   itkSetMacro(ConductanceScalingUpdateInterval, unsigned int);
00115   itkGetConstMacro(ConductanceScalingUpdateInterval, unsigned int);
00117 
00120   itkSetMacro(ConductanceScalingParameter, double);
00121   itkGetConstMacro(ConductanceScalingParameter, double);
00123 
00131   void SetFixedAverageGradientMagnitude(double a)
00132     {
00133     m_FixedAverageGradientMagnitude= a;
00134     this->Modified();
00135     m_GradientMagnitudeIsFixed = true;
00136     }
00137   itkGetConstMacro(FixedAverageGradientMagnitude, double);
00139 
00140 protected:
00141   AnisotropicDiffusionImageFilter();
00142   ~AnisotropicDiffusionImageFilter() {}
00143   void PrintSelf(std::ostream& os, Indent indent) const;
00144 
00147   //  virtual bool Halt();
00148 
00150   virtual void InitializeIteration();
00151 
00152   bool m_GradientMagnitudeIsFixed;
00153   
00154 private:
00155   AnisotropicDiffusionImageFilter(const Self&); //purposely not implemented
00156   void operator=(const Self&); //purposely not implemented
00157   
00158   double           m_ConductanceParameter;
00159   double           m_ConductanceScalingParameter;
00160   unsigned int     m_ConductanceScalingUpdateInterval;
00161   double           m_FixedAverageGradientMagnitude;
00162 
00163   TimeStepType     m_TimeStep;
00164   
00165 };
00166 
00167 } // end namspace itk
00168 
00169 #ifndef ITK_MANUAL_INSTANTIATION
00170 #include "itkAnisotropicDiffusionImageFilter.txx"
00171 #endif
00172 
00173 #undef ITK_LEAN_AND_MEAN
00174 
00175 #endif
00176 

Generated at Mon Jul 12 2010 17:43:29 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000