18 #ifndef itkLogImageAdaptor_h
19 #define itkLogImageAdaptor_h
40 template<
typename TInternalType,
typename TExternalType >
52 static inline void Set(TInternalType & output,
const TExternalType & input)
53 { output = (TInternalType)std::log( (
double)input ); }
55 static inline TExternalType
Get(
const TInternalType & input)
56 {
return (TExternalType)std::log( (
double)input ); }
69 template<
typename TImage,
typename TOutputPixelType >
72 Accessor::LogPixelAccessor<
73 typename TImage::PixelType,
83 typename TImage::PixelType,
static TExternalType Get(const TInternalType &input)
LogImageAdaptor()=default
static void Set(TInternalType &output, const TExternalType &input)
Presents an image as being composed of the std::log() of its pixels.
TOutputPixelType ExternalType
Give access to the std::log() function of a value.
TImage::PixelType InternalType
Give access to partial aspects of voxels from an Image.
Base class for most ITK classes.
~LogImageAdaptor() override=default
Base class for all data objects in ITK.