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,
78 typename TImage::PixelType,
SmartPointer< const Self > ConstPointer
ImageAdaptor< TImage, Accessor::CosPixelAccessor< typename TImage::PixelType, TOutputPixelType > > Superclass
Presents an image as being composed of the std::cos() of its pixels.
static TExternalType Get(const TInternalType &input)
virtual ~CosImageAdaptor() override
static void Set(TInternalType &output, const TExternalType &input)
TInternalType InternalType
SmartPointer< Self > Pointer
Give access to the std::cos() function of a value.
Give access to partial aspects of voxels from an Image.
Base class for all data objects in ITK.
TExternalType ExternalType