18 #ifndef itkSinImageAdaptor_h
19 #define itkSinImageAdaptor_h
39 template<
typename TInternalType,
typename TExternalType >
51 static inline void Set(TInternalType & output,
const TExternalType & input)
52 { output = (TInternalType)std::sin( (
double)input ); }
54 static inline TExternalType
Get(
const TInternalType & input)
55 {
return (TExternalType)std::sin( (
double)input ); }
68 template<
typename TImage,
typename TOutputPixelType >
71 Accessor::SinPixelAccessor<
72 typename TImage::PixelType,
81 typename TImage::PixelType,
TOutputPixelType ExternalType
static TExternalType Get(const TInternalType &input)
TImage::PixelType InternalType
static void Set(TInternalType &output, const TExternalType &input)
Give access to partial aspects of voxels from an Image.
Base class for most ITK classes.
Give access to the std::sin() function of a value.
Base class for all data objects in ITK.
~SinImageAdaptor() override=default
SinImageAdaptor()=default
Presents an image as being composed of the std::sin() of its pixels.