Orfeo Toolbox  3.16
itkGaussianTransferFunction.txx
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkGaussianTransferFunction.txx,v $
5  Language: C++
6  Date: $Date: 2009-04-06 11:15:09 $
7  Version: $Revision: 1.2 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 
18 #ifndef __itkGaussianTransferFunction_txx
19 #define __itkGaussianTransferFunction_txx
20 
22 
23 namespace itk
24 {
25 namespace Statistics
26 {
27 
29 template<class ScalarType>
32 {
33 }
34 
36 template<class ScalarType>
39 {
40 }
41 
43 template<class ScalarType>
44 ScalarType
46 ::Evaluate(const ScalarType& input) const
47 {
48  return static_cast<ScalarType>((vcl_exp(-1 * input * input)));
49 }
50 
52 template<class ScalarType>
53 ScalarType
55 ::EvaluateDerivative(const ScalarType& input) const
56 {
57  return static_cast<ScalarType>(-2 * Evaluate(input) * input);
58 }
59 
61 template<class ScalarType>
62 void
64 ::PrintSelf( std::ostream& os, Indent indent ) const
65 {
66  os << indent << "GaussianTransferFunction(" << this << ")" << std::endl;
67  Superclass::PrintSelf( os, indent );
68 }
69 
70 } // end namespace Statistics
71 } // end namespace itk
72 
73 #endif

Generated at Sat Feb 2 2013 23:38:57 for Orfeo Toolbox with doxygen 1.8.1.1