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