18 #ifndef itkLogImageAdaptor_h
19 #define itkLogImageAdaptor_h
22 #include "vnl/vnl_math.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,
81 typename TImage::PixelType,
static TExternalType Get(const TInternalType &input)
TExternalType ExternalType
SmartPointer< const Self > ConstPointer
static void Set(TInternalType &output, const TExternalType &input)
ImageAdaptor< TImage, Accessor::LogPixelAccessor< typename TImage::PixelType, TOutputPixelType > > Superclass
Presents an image as being composed of the std::log() of its pixels.
SmartPointer< Self > Pointer
Give access to the std::log() function of a value.
void operator=(const Self &)
virtual ~LogImageAdaptor()
Give access to partial aspects of voxels from an Image.
Base class for all data objects in ITK.
TInternalType InternalType