21 #ifndef otbDefaultConvertPixelTraits_h
22 #define otbDefaultConvertPixelTraits_h
24 #include "itkDefaultConvertPixelTraits.h"
25 #include "OTBImageBaseExport.h"
31 template <
typename PixelType>
35 typedef itk::DefaultConvertPixelTraits<PixelType>
SuperClass;
36 using typename SuperClass::ComponentType;
38 using SuperClass::SetNthComponent;
50 typedef itk::DefaultConvertPixelTraits<::std::complex<T>>
SuperClass;
51 using typename SuperClass::TargetType;
52 using typename SuperClass::ComponentType;
54 using SuperClass::SetNthComponent;
76 return static_cast<ComponentType
>(pixel.real() * pixel.real() + pixel.imag() * pixel.imag());
itk::DefaultConvertPixelTraits<::std::complex< T > > SuperClass
static void SetNthComponent(int, TargetType &pixel, const TargetType &v)
static ComponentType GetScalarValue(const TargetType &pixel)
static TargetType GetNthComponent(int, const TargetType &pixel)
static void SetNthComponent(int, PixelType &pixel, const PixelType &v)
itk::DefaultConvertPixelTraits< PixelType > SuperClass
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.