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