|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
21 #ifndef otbAmplitudeFunctor_h
22 #define otbAmplitudeFunctor_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");
134 return std::sqrt(a * a + b * b);
itk::RGBAPixel< ScalarType > RGBAPixelType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
ScalarType ComputeAmplitude(ScalarType a, ScalarType b) const
itk::RGBAPixel< ScalarType > RGBAPixelType
itk::RGBPixel< ScalarType > RGBPixelType
itk::NumericTraits< PixelType >::ValueType ScalarType
itk::SmartPointer< const Self > ConstPointer
unsigned int GetOutputSize() const override
itk::VariableLengthVector< ScalarType > VectorPixelType
itk::RGBPixel< ScalarType > RGBPixelType
virtual void SetChannelList(std::vector< unsigned int > channels)
VectorPixelType OutputPixelType
VectorPixelType OutputPixelType
virtual std::vector< unsigned int > GetChannelList() const
~AmplitudeFunctor() override
itk::VariableLengthVector< ScalarType > VectorPixelType
const char * GetDescription() const
OutputPixelType operator()(ScalarType) const override
itk::NumericTraits< PixelType >::ValueType ScalarType
Base class for pixel representation functions.
OutputPixelType operator()(const VectorPixelType &inPixel) const override
OutputPixelType operator()(const RGBAPixelType &inPixel) const override
OutputPixelType operator()(const RGBPixelType &inPixel) const override
itk::SmartPointer< Self > Pointer
Compute the module from the selected channel in the input.