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: 2003/09/10 14:28:43 $ 00007 Version: $Revision: 1.39 $ 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 namespace itk { 00025 00069 template <class TInputImage, class TOutputImage> 00070 class ITK_EXPORT AnisotropicDiffusionImageFilter 00071 : public DenseFiniteDifferenceImageFilter<TInputImage, TOutputImage> 00072 { 00073 public: 00075 typedef AnisotropicDiffusionImageFilter Self; 00076 typedef DenseFiniteDifferenceImageFilter<TInputImage, TOutputImage> 00077 Superclass; 00078 typedef SmartPointer<Self> Pointer; 00079 typedef SmartPointer<const Self> ConstPointer; 00080 00082 itkTypeMacro(AnisotropicDiffusionImageFilter, 00083 DenseFiniteDifferenceImageFilter); 00084 00086 typedef typename Superclass::InputImageType InputImageType; 00087 typedef typename Superclass::OutputImageType OutputImageType; 00088 typedef typename Superclass::UpdateBufferType UpdateBufferType; 00089 00092 itkStaticConstMacro(ImageDimension, unsigned int,Superclass::ImageDimension); 00093 00096 typedef typename Superclass::PixelType PixelType; 00097 typedef typename Superclass::TimeStepType TimeStepType; 00098 00100 itkSetMacro(NumberOfIterations, unsigned int); 00101 itkGetMacro(NumberOfIterations, unsigned int); 00102 00104 itkSetMacro(TimeStep, TimeStepType); 00105 itkGetMacro(TimeStep, TimeStepType); 00106 00109 itkSetMacro(ConductanceParameter, double); 00110 itkGetMacro(ConductanceParameter, double); 00111 00114 itkSetMacro(ConductanceScalingUpdateInterval, unsigned int); 00115 itkGetMacro(ConductanceScalingUpdateInterval, unsigned int); 00116 00119 itkSetMacro(ConductanceScalingParameter, double); 00120 itkGetMacro(ConductanceScalingParameter, double); 00121 00129 void SetFixedAverageGradientMagnitude(double a) 00130 { 00131 m_FixedAverageGradientMagnitude= a; 00132 this->Modified(); 00133 m_GradientMagnitudeIsFixed = true; 00134 } 00135 itkGetMacro(FixedAverageGradientMagnitude, double); 00136 00137 protected: 00138 AnisotropicDiffusionImageFilter(); 00139 ~AnisotropicDiffusionImageFilter() {} 00140 void PrintSelf(std::ostream& os, Indent indent) const; 00141 00144 virtual bool Halt(); 00145 00147 virtual void InitializeIteration(); 00148 00149 bool m_GradientMagnitudeIsFixed; 00150 00151 private: 00152 AnisotropicDiffusionImageFilter(const Self&); //purposely not implemented 00153 void operator=(const Self&); //purposely not implemented 00154 00155 double m_ConductanceParameter; 00156 double m_ConductanceScalingParameter; 00157 unsigned int m_NumberOfIterations; 00158 unsigned int m_ConductanceScalingUpdateInterval; 00159 double m_FixedAverageGradientMagnitude; 00160 00161 TimeStepType m_TimeStep; 00162 00163 }; 00164 00165 } // end namspace itk 00166 00167 #ifndef ITK_MANUAL_INSTANTIATION 00168 #include "itkAnisotropicDiffusionImageFilter.txx" 00169 #endif 00170 00171 #endif

Generated at Sat Mar 31 02:14:04 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000