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