|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkTanImageAdaptor_h
19 #define itkTanImageAdaptor_h
40 template <
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));
78 template <
typename TImage,
typename TOutputPixelType>
80 :
public ImageAdaptor<TImage, Accessor::TanPixelAccessor<typename TImage::PixelType, TOutputPixelType>>
Give access to partial aspects of voxels from an Image.
Presents an image as being composed of the std::tan() of its pixels.
TImage::PixelType InternalType
Give access to the std::tan() function of a value.
static void Set(TInternalType &output, const TExternalType &input)
TanImageAdaptor()=default
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
static TExternalType Get(const TInternalType &input)
~TanImageAdaptor() override=default
Base class for most ITK classes.
TOutputPixelType ExternalType
Base class for all data objects in ITK.