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

itkAsinImageFilter.h

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

Generated at Fri May 21 01:14:25 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000