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