18 #ifndef __itkExpNegativeImageAdaptor_h
19 #define __itkExpNegativeImageAdaptor_h
22 #include "vnl/vnl_math.h"
39 template<
class TInternalType,
class TExternalType >
51 static inline void Set(TInternalType & output,
const TExternalType & input)
52 { output =
static_cast< TInternalType
>( vcl_exp( -static_cast< double >( input ) ) ); }
54 static inline TExternalType Get(
const TInternalType & input)
55 {
return static_cast< TExternalType
>( vcl_exp( -static_cast< double >( input ) ) ); }
68 template<
class TImage,
class TOutputPixelType >
70 ImageAdaptor< TImage, Accessor::ExpNegativePixelAccessor<
71 typename TImage::PixelType,
79 typename TImage::PixelType, TOutputPixelType > >
Superclass;
94 void operator=(
const Self &);