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)
~ComplexToRealImageAdaptor() override=default
ImageAdaptor< TImage, Accessor::ComplexToRealPixelAccessor< typename TImage::PixelType, TOutputPixelType > > Superclass
SmartPointer< const Self > ConstPointer
ComplexToRealImageAdaptor()=default
SmartPointer< Self > Pointer
ComplexToRealImageAdaptor Self
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....