18#ifndef itkComplexToRealImageAdaptor_h
19#define itkComplexToRealImageAdaptor_h
41template <
typename TInternalType,
typename TExternalType>
55 Set(TInternalType & output,
const TExternalType & input)
57 output = (TInternalType)(input);
60 static inline TExternalType
61 Get(
const TInternalType & input)
63 return (TExternalType)(input.real());
79template <
typename TImage,
typename TOutputPixelType>
81 :
public ImageAdaptor<TImage, Accessor::ComplexToRealPixelAccessor<typename TImage::PixelType, TOutputPixelType>>
Give access to the Real part of a std::complex<> value.
TExternalType ExternalType
TInternalType InternalType
static TExternalType Get(const TInternalType &input)
static void Set(TInternalType &output, const TExternalType &input)
Presents a complex image as being composed of real() part of its pixels.
~ComplexToRealImageAdaptor() override=default
ComplexToRealImageAdaptor()=default
Base class for all data objects in ITK.
Give access to partial aspects of voxels from an Image.
Base class for most ITK classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....