18 #ifndef __itkTanImageAdaptor_h
19 #define __itkTanImageAdaptor_h
22 #include "vnl/vnl_math.h"
39 template<
typename TInternalType,
typename TExternalType >
51 static inline void Set(TInternalType & output,
const TExternalType & input)
52 { output = (TInternalType)std::tan( (
double)input ); }
54 static inline TExternalType
Get(
const TInternalType & input)
55 {
return (TExternalType)std::tan( (
double)input ); }
69 template<
typename TImage,
typename TOutputPixelType >
72 Accessor::TanPixelAccessor<
73 typename TImage::PixelType,
80 typename TImage::PixelType,
TExternalType ExternalType
TInternalType InternalType
virtual ~TanImageAdaptor()
SmartPointer< const Self > ConstPointer
ImageAdaptor< TImage, Accessor::TanPixelAccessor< typename TImage::PixelType, TOutputPixelType > > Superclass
Presents an image as being composed of the std::tan() of its pixels.
static void Set(TInternalType &output, const TExternalType &input)
static TExternalType Get(const TInternalType &input)
Give access to partial aspects of voxels from an Image.
Give access to the std::tan() function of a value.
SmartPointer< Self > Pointer
Base class for all data objects in ITK.
void operator=(const Self &)