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