00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkScalarAnisotropicDiffusionFunction.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/09/11 19:39:02 $ 00007 Version: $Revision: 1.7 $ 00008 00009 Copyright (c) 2002 Insight 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 __itkScalarAnisotropicDiffusionFunction_h_ 00018 #define __itkScalarAnisotropicDiffusionFunction_h_ 00019 00020 00021 #include "itkAnisotropicDiffusionFunction.h" 00022 00023 namespace itk { 00024 00038 template <class TImage> 00039 class ScalarAnisotropicDiffusionFunction : 00040 public AnisotropicDiffusionFunction<TImage> 00041 { 00042 public: 00044 typedef ScalarAnisotropicDiffusionFunction Self; 00045 typedef AnisotropicDiffusionFunction<TImage> Superclass; 00046 typedef SmartPointer<Self> Pointer; 00047 typedef SmartPointer<const Self> ConstPointer; 00048 00050 itkStaticConstMacro(ImageDimension, unsigned int, 00051 Superclass::ImageDimension ); 00052 00054 typedef typename Superclass::ImageType ImageType; 00055 typedef typename Superclass::PixelType PixelType; 00056 typedef typename Superclass::RadiusType RadiusType; 00057 typedef typename Superclass::NeighborhoodType NeighborhoodType; 00058 typedef typename Superclass::BoundaryNeighborhoodType BoundaryNeighborhoodType; 00059 typedef typename Superclass::TimeStepType TimeStepType; 00060 00062 itkTypeMacro(ScalarAnisotropicDiffusionFunction, 00063 AnisotropicDiffusionFunction); 00064 00065 virtual void CalculateAverageGradientMagnitudeSquared(TImage *); 00066 00067 protected: 00068 ScalarAnisotropicDiffusionFunction() {} 00069 ~ScalarAnisotropicDiffusionFunction() {} 00070 void PrintSelf(std::ostream& os, Indent indent) const 00071 { Superclass::PrintSelf(os,indent); } 00072 private: 00073 ScalarAnisotropicDiffusionFunction(const Self&); //purposely not implemented 00074 void operator=(const Self&); //purposely not implemented 00075 }; 00076 00077 }// end namespace itk 00078 00079 #ifndef ITK_MANUAL_INSTANTIATION 00080 #include "itkScalarAnisotropicDiffusionFunction.txx" 00081 #endif 00082 00083 #endif