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