00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
#ifndef __itkAcosImageFilter_h
00018
#define __itkAcosImageFilter_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 Acos
00050 {
00051
public:
00052 Acos() {};
00053 ~Acos() {};
00054 inline TOutput
operator()(
const TInput & A )
00055 {
00056
return static_cast<TOutput>( acos( static_cast<double>(A) ) );
00057 }
00058 };
00059 }
00060
00061
template <
class TInputImage,
class TOutputImage>
00062 class ITK_EXPORT AcosImageFilter :
00063
public
00064
UnaryFunctorImageFilter<TInputImage,TOutputImage,
00065 Functor::Acos<
00066 typename TInputImage::PixelType,
00067 typename TOutputImage::PixelType> >
00068 {
00069
public:
00071 typedef AcosImageFilter
Self;
00072
typedef UnaryFunctorImageFilter<TInputImage,TOutputImage,
00073
Functor::Acos<
typename TInputImage::PixelType,
00074 typename TOutputImage::PixelType> >
Superclass;
00075 typedef SmartPointer<Self> Pointer;
00076 typedef SmartPointer<const Self> ConstPointer;
00077
00079
itkNewMacro(
Self);
00080
00081
protected:
00082 AcosImageFilter() {}
00083 virtual ~AcosImageFilter() {}
00084
00085
private:
00086 AcosImageFilter(
const Self&);
00087
void operator=(
const Self&);
00088
00089 };
00090
00091 }
00092
00093
00094
#endif