18 #ifndef __itkSqrtImageAdaptor_h
19 #define __itkSqrtImageAdaptor_h
22 #include "vnl/vnl_math.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
SmartPointer< Self > Pointer
TInternalType InternalType
SmartPointer< const Self > ConstPointer
void operator=(const Self &)
Give access to the std::sqrt() function of a value.
static TExternalType Get(const TInternalType &input)
virtual ~SqrtImageAdaptor()
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)