00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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&);
00089 void operator=(const Self&);
00090
00091
00092 };
00093
00094 }
00095
00096
00097 #endif