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

itkAtanImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkAtanImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/01/15 19:35:56 $
00007   Version:   $Revision: 1.14 $
00008 
00009   Copyright (c) 2002 Insight 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 __itkAtanImageFilter_h
00018 #define __itkAtanImageFilter_h
00019 
00020 #include "itkUnaryFunctorImageFilter.h"
00021 #include "vnl/vnl_math.h"
00022 
00023 namespace itk
00024 {
00025   
00046 namespace Functor {  
00047   
00048   template< class TInput, class TOutput>
00049   class Atan
00050   {
00051   public:
00052     Atan() {};
00053     ~Atan() {};
00054     inline TOutput operator()( const TInput & A )
00055     {
00056       return static_cast<TOutput>( atan( static_cast<double>(A) ) );
00057     }
00058   }; 
00059 
00060 }
00061 template <class TInputImage, class TOutputImage>
00062 class ITK_EXPORT AtanImageFilter :
00063     public
00064     UnaryFunctorImageFilter<TInputImage,TOutputImage, 
00065     Functor::Atan< 
00066               typename TInputImage::PixelType, 
00067               typename TOutputImage::PixelType>   >
00068 {
00069 public:
00071   typedef AtanImageFilter  Self;
00072   typedef UnaryFunctorImageFilter<TInputImage,TOutputImage, 
00073     Functor::Atan< 
00074               typename TInputImage::PixelType, 
00075               typename TOutputImage::PixelType>   
00076                 >  Superclass;
00077   typedef SmartPointer<Self>   Pointer;
00078   typedef SmartPointer<const Self>  ConstPointer;
00079 
00081   itkNewMacro(Self);
00082   
00083 protected:
00084   AtanImageFilter() {}
00085   virtual ~AtanImageFilter() {}
00086 
00087 private:
00088   AtanImageFilter(const Self&); //purposely not implemented
00089   void operator=(const Self&); //purposely not implemented
00090 
00091 
00092 };
00093 
00094 } // end namespace itk
00095 
00096 
00097 #endif

Generated at Wed Mar 12 01:12:47 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000