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