|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkLogImageAdaptor_h
19 #define itkLogImageAdaptor_h
41 template <
typename TInternalType,
typename TExternalType>
54 Set(TInternalType & output,
const TExternalType & input)
56 output = (TInternalType)std::log((
double)input);
59 static inline TExternalType
60 Get(
const TInternalType & input)
62 return (TExternalType)std::log((
double)input);
77 template <
typename TImage,
typename TOutputPixelType>
79 :
public ImageAdaptor<TImage, Accessor::LogPixelAccessor<typename TImage::PixelType, TOutputPixelType>>
Presents an image as being composed of the std::log() of its pixels.
TOutputPixelType ExternalType
Give access to partial aspects of voxels from an Image.
~LogImageAdaptor() override=default
Give access to the std::log() function of a value.
LogImageAdaptor()=default
TImage::PixelType InternalType
static void Set(TInternalType &output, const TExternalType &input)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Base class for most ITK classes.
static TExternalType Get(const TInternalType &input)
Base class for all data objects in ITK.