18#ifndef itkExpNegativeImageAdaptor_h
19#define itkExpNegativeImageAdaptor_h
40template <
typename TInternalType,
typename TExternalType>
54 Set(TInternalType & output,
const TExternalType & input)
56 output =
static_cast<TInternalType
>(std::exp(-
static_cast<double>(input)));
59 static inline TExternalType
60 Get(
const TInternalType & input)
62 return static_cast<TExternalType
>(std::exp(-
static_cast<double>(input)));
77template <
typename TImage,
typename TOutputPixelType>
79 :
public ImageAdaptor<TImage, Accessor::ExpNegativePixelAccessor<typename TImage::PixelType, TOutputPixelType>>
Give access to the std::exp() function of a value.
static TExternalType Get(const TInternalType &input)
TExternalType ExternalType
static void Set(TInternalType &output, const TExternalType &input)
TInternalType InternalType
ExpNegativeImageAdaptor Self
SmartPointer< const Self > ConstPointer
ImageAdaptor< TImage, Accessor::ExpNegativePixelAccessor< typename TImage::PixelType, TOutputPixelType > > Superclass
ExpNegativeImageAdaptor()=default
SmartPointer< Self > Pointer
~ExpNegativeImageAdaptor() override=default
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....