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,
78 typename TImage::PixelType,
ImageAdaptor< TImage, Accessor::SqrtPixelAccessor< typename TImage::PixelType, TOutputPixelType > > Superclass
TExternalType ExternalType
virtual ~SqrtImageAdaptor() override
SmartPointer< Self > Pointer
TInternalType InternalType
SmartPointer< const Self > ConstPointer
Give access to the std::sqrt() function of a value.
static TExternalType Get(const TInternalType &input)
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 all data objects in ITK.
static void Set(TInternalType &output, const TExternalType &input)