|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
21 #ifndef otbPhaseFunctor_h
22 #define otbPhaseFunctor_h
39 template <
class TInputPixel>
56 typedef typename itk::NumericTraits<PixelType>::ValueType
ScalarType;
66 std::vector<unsigned int> channels;
67 channels.push_back(0);
68 channels.push_back(1);
102 itkExceptionMacro(<<
"Can't compute amplitude from a scalar value");
132 return std::atan2(b, a);
OutputPixelType operator()(const RGBPixelType &inPixel) const override
itk::SmartPointer< Self > Pointer
Compute the module from the selected channel in the input.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
itk::RGBAPixel< ScalarType > RGBAPixelType
itk::RGBAPixel< ScalarType > RGBAPixelType
ScalarType ComputePhase(ScalarType a, ScalarType b) const
VectorPixelType OutputPixelType
const char * GetDescription() const
itk::RGBPixel< ScalarType > RGBPixelType
virtual void SetChannelList(std::vector< unsigned int > channels)
VectorPixelType OutputPixelType
OutputPixelType operator()(ScalarType) const override
itk::VariableLengthVector< ScalarType > VectorPixelType
itk::NumericTraits< PixelType >::ValueType ScalarType
virtual std::vector< unsigned int > GetChannelList() const
unsigned int GetOutputSize() const override
itk::SmartPointer< const Self > ConstPointer
itk::VariableLengthVector< ScalarType > VectorPixelType
OutputPixelType operator()(const VectorPixelType &inPixel) const override
itk::NumericTraits< PixelType >::ValueType ScalarType
Base class for pixel representation functions.
OutputPixelType operator()(const RGBAPixelType &inPixel) const override
itk::RGBPixel< ScalarType > RGBPixelType