18#ifndef itkTanImageAdaptor_h
19#define itkTanImageAdaptor_h
40template <
typename TInternalType,
typename TExternalType>
54 Set(TInternalType & output,
const TExternalType & input)
56 output = (TInternalType)std::tan(
static_cast<double>(input));
59 static inline TExternalType
60 Get(
const TInternalType & input)
62 return (TExternalType)std::tan(
static_cast<double>(input));
78template <
typename TImage,
typename TOutputPixelType>
80 :
public ImageAdaptor<TImage, Accessor::TanPixelAccessor<typename TImage::PixelType, TOutputPixelType>>
Give access to the std::tan() function of a value.
static void Set(TInternalType &output, const TExternalType &input)
TInternalType InternalType
static TExternalType Get(const TInternalType &input)
TExternalType ExternalType
Implements transparent reference counting.
TanImageAdaptor()=default
SmartPointer< Self > Pointer
ImageAdaptor< TImage, Accessor::TanPixelAccessor< typename TImage::PixelType, TOutputPixelType > > Superclass
SmartPointer< const Self > ConstPointer
~TanImageAdaptor() override=default
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....