18 #ifndef itkTanImageAdaptor_h
19 #define itkTanImageAdaptor_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,
82 typename TImage::PixelType,
TOutputPixelType ExternalType
~TanImageAdaptor() override=default
Presents an image as being composed of the std::tan() of its pixels.
TanImageAdaptor()=default
static void Set(TInternalType &output, const TExternalType &input)
static TExternalType Get(const TInternalType &input)
TImage::PixelType InternalType
Give access to partial aspects of voxels from an Image.
Base class for most ITK classes.
Give access to the std::tan() function of a value.
Base class for all data objects in ITK.