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());