18 #ifndef __itkSinImageAdaptor_h
19 #define __itkSinImageAdaptor_h
22 #include "vnl/vnl_math.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,
79 typename TImage::PixelType,
void operator=(const Self &)
ImageAdaptor< TImage, Accessor::SinPixelAccessor< typename TImage::PixelType, TOutputPixelType > > Superclass
TInternalType InternalType
SmartPointer< const Self > ConstPointer
static TExternalType Get(const TInternalType &input)
virtual ~SinImageAdaptor()
TExternalType ExternalType
static void Set(TInternalType &output, const TExternalType &input)
Give access to partial aspects of voxels from an Image.
Give access to the std::sin() function of a value.
Base class for all data objects in ITK.
Presents an image as being composed of the std::sin() of its pixels.
SmartPointer< Self > Pointer