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