18#ifndef itkExpImageAdaptor_h
19#define itkExpImageAdaptor_h
40template <
typename TInternalType,
typename TExternalType>
54 Set(TInternalType & output,
const TExternalType & input)
56 output = (TInternalType)std::exp(
static_cast<double>(input));
59 static inline TExternalType
60 Get(
const TInternalType & input)
62 return (TExternalType)std::exp(
static_cast<double>(input));
77template <
typename TImage,
typename TOutputPixelType>
79 :
public ImageAdaptor<TImage, Accessor::ExpPixelAccessor<typename TImage::PixelType, TOutputPixelType>>
Give access to the std::exp() function of a value.
TInternalType InternalType
static TExternalType Get(const TInternalType &input)
TExternalType ExternalType
static void Set(TInternalType &output, const TExternalType &input)
Base class for all data objects in ITK.
Presents an image as being composed of the std::exp() of its pixels.
ExpImageAdaptor()=default
~ExpImageAdaptor() override=default
Give access to partial aspects of voxels from an Image.
Base class for most ITK classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....