itkAtanImageFilter.h
Go to the documentation of this file.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 bool operator!=( const Atan & ) const
00055 {
00056 return false;
00057 }
00058 bool operator==( const Atan & other ) const
00059 {
00060 return !(*this != other);
00061 }
00062 inline TOutput operator()( const TInput & A ) const
00063 {
00064 return static_cast<TOutput>( vcl_atan(static_cast<double>(A) ) );
00065 }
00066 };
00067
00068 }
00069 template <class TInputImage, class TOutputImage>
00070 class ITK_EXPORT AtanImageFilter :
00071 public
00072 UnaryFunctorImageFilter<TInputImage,TOutputImage,
00073 Functor::Atan<
00074 typename TInputImage::PixelType,
00075 typename TOutputImage::PixelType> >
00076 {
00077 public:
00079 typedef AtanImageFilter Self;
00080 typedef UnaryFunctorImageFilter<TInputImage,TOutputImage,
00081 Functor::Atan<
00082 typename TInputImage::PixelType,
00083 typename TOutputImage::PixelType>
00084 > Superclass;
00085 typedef SmartPointer<Self> Pointer;
00086 typedef SmartPointer<const Self> ConstPointer;
00087
00089 itkNewMacro(Self);
00090
00092 itkTypeMacro(AtanImageFilter,
00093 UnaryFunctorImageFilter);
00094
00095 #ifdef ITK_USE_CONCEPT_CHECKING
00096
00097 itkConceptMacro(InputConvertibleToDoubleCheck,
00098 (Concept::Convertible<typename TInputImage::PixelType, double>));
00099 itkConceptMacro(DoubleConvertibleToOutputCheck,
00100 (Concept::Convertible<double, typename TOutputImage::PixelType>));
00101
00103 #endif
00104
00105 protected:
00106 AtanImageFilter() {}
00107 virtual ~AtanImageFilter() {}
00108
00109 private:
00110 AtanImageFilter(const Self&);
00111 void operator=(const Self&);
00112
00113
00114 };
00115
00116 }
00117
00118
00119 #endif
00120