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

itkGaussianKernelFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGaussianKernelFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/03/22 18:25:13 $
00007   Version:   $Revision: 1.8 $
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 _itkGaussianKernelFunction_h
00018 #define _itkGaussianKernelFunction_h
00019 
00020 #include "itkKernelFunction.h"
00021 #include "vnl/vnl_math.h"
00022 #include <math.h>
00023 
00024 namespace itk
00025 {
00026 
00039 class ITKCommon_EXPORT GaussianKernelFunction : public KernelFunction
00040 {
00041 public:
00043   typedef GaussianKernelFunction Self;
00044   typedef KernelFunction Superclass;
00045   typedef SmartPointer<Self>  Pointer;
00046 
00048   itkNewMacro(Self); 
00049 
00051   itkTypeMacro(GaussianKernelFunction, KernelFunction); 
00052 
00054   inline double Evaluate (const double& u) const
00055     { return ( exp( -0.5 * vnl_math_sqr( u ) ) * m_Factor ); }
00056 
00057 protected:
00058   GaussianKernelFunction();
00059   ~GaussianKernelFunction();
00060   void PrintSelf(std::ostream& os, Indent indent) const
00061     { Superclass::PrintSelf( os, indent ); }  
00062 
00063 private:
00064   GaussianKernelFunction(const Self&); //purposely not implemented
00065   void operator=(const Self&); //purposely not implemented
00066 
00067   static const double m_Factor;
00068 
00069 };
00070 
00071 } // namespace itk
00072 
00073 #endif

Generated at Wed May 24 23:11:02 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000