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: 2006/03/19 04:36:58 $
00007   Version:   $Revision: 1.10 $
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 ( vcl_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 } // end namespace itk
00072 
00073 #endif
00074 

Generated at Sun Sep 23 12:39:07 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000