00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkGaussianRadialBasisFunction.h,v $ 00005 Language: C++ 00006 Date: $Date: 2007-08-17 13:10:57 $ 00007 Version: $Revision: 1.3 $ 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 00018 #ifndef __itkGaussianRadialBasisFunction_h 00019 #define __itkGaussianRadialBasisFunction_h 00020 00021 #include "itkRadialBasisFunctionBase.h" 00022 #include "itkNNetDistanceMetricBase.h" 00023 00024 namespace itk 00025 { 00026 namespace Statistics 00027 { 00028 template<class ScalarType> 00029 class GaussianRadialBasisFunction : public RadialBasisFunctionBase<ScalarType> 00030 { 00031 public: 00032 00034 typedef GaussianRadialBasisFunction Self; 00035 typedef RadialBasisFunctionBase<ScalarType> Superclass; 00036 typedef typename Superclass::ArrayType ArrayType; 00037 typedef SmartPointer<Self> Pointer; 00038 typedef SmartPointer<const Self> ConstPointer; 00039 00041 itkTypeMacro(GaussianRadialBasisFunction,RadialBasisFunctionBase); 00042 00044 itkNewMacro(Self); 00045 00047 virtual ScalarType Evaluate(const ScalarType& input) const; 00048 00049 virtual ScalarType EvaluateDerivative(const ScalarType& dist,const ArrayType& input, 00050 char mode,int element_id=0) const; 00051 00052 protected: 00053 00054 GaussianRadialBasisFunction(); 00055 virtual ~GaussianRadialBasisFunction(); 00056 00058 virtual void PrintSelf( std::ostream& os, Indent indent ) const; 00059 00060 }; 00061 00062 } // end namespace Statistics 00063 } // end namespace itk 00064 00065 #ifndef ITK_MANUAL_INSTANTIATION 00066 #include "itkGaussianRadialBasisFunction.txx" 00067 #endif 00068 00069 #endif 00070