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

itkExpImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkExpImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/09/10 14:28:47 $
00007   Version:   $Revision: 1.16 $
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 __itkExpImageFilter_h
00018 #define __itkExpImageFilter_h
00019 
00020 #include "itkUnaryFunctorImageFilter.h"
00021 #include "vnl/vnl_math.h"
00022 
00023 #if defined(_MSC_VER) && (_MSC_VER >= 1300)
00024 #pragma function(exp)
00025 #endif
00026 
00027 namespace itk
00028 {
00029   
00038 namespace Function {  
00039 template< class TInput, class TOutput>
00040 class Exp
00041 {
00042 public:
00043   Exp() {};
00044   ~Exp() {};
00045   inline TOutput operator()( const TInput & A )
00046   {
00047     return (TOutput)exp((double)A);
00048   }
00049 }; 
00050 }
00051 template <class TInputImage, class TOutputImage>
00052 class ITK_EXPORT ExpImageFilter :
00053     public
00054 UnaryFunctorImageFilter<TInputImage,TOutputImage, 
00055                         Function::Exp< 
00056   typename TInputImage::PixelType, 
00057   typename TOutputImage::PixelType>   >
00058 {
00059 public:
00061   typedef ExpImageFilter  Self;
00062   typedef UnaryFunctorImageFilter<TInputImage,TOutputImage, 
00063                                   Function::Exp< typename TInputImage::PixelType, 
00064                                                  typename TOutputImage::PixelType> >  Superclass;
00065   typedef SmartPointer<Self>   Pointer;
00066   typedef SmartPointer<const Self>  ConstPointer;
00067 
00069   itkNewMacro(Self);
00070   
00071 protected:
00072   ExpImageFilter() {}
00073   virtual ~ExpImageFilter() {}
00074 
00075 private:
00076   ExpImageFilter(const Self&); //purposely not implemented
00077   void operator=(const Self&); //purposely not implemented
00078 
00079 
00080 };
00081 
00082 } // end namespace itk
00083 
00084 
00085 #endif

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