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