18 #ifndef itkSqrtImageAdaptor_h
19 #define itkSqrtImageAdaptor_h
39 template<
typename TInternalType,
typename TExternalType >
51 static inline void Set(TInternalType & output,
const TExternalType & input)
52 { output = (TInternalType)std::sqrt( (
double)input ); }
54 static inline TExternalType
Get(
const TInternalType & input)
55 {
return (TExternalType)std::sqrt( (
double)input ); }
68 template<
typename TImage,
typename TOutputPixelType >
71 typename TImage::PixelType,
80 typename TImage::PixelType,
TOutputPixelType ExternalType
Give access to the std::sqrt() function of a value.
SqrtImageAdaptor()=default
static TExternalType Get(const TInternalType &input)
~SqrtImageAdaptor() override=default
Presents an image as being composed of the std::sqrt() of its pixels.
Give access to partial aspects of voxels from an Image.
Base class for most ITK classes.
TImage::PixelType InternalType
Base class for all data objects in ITK.
static void Set(TInternalType &output, const TExternalType &input)