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