22 #ifndef otbAffineFunctor_h
23 #define otbAffineFunctor_h
42 template <
class TInput,
class TOutput,
class TScale =
double>
87 return (
m_B +
static_cast<TOutput
>(
m_A * x));
This functor performs a linear transform of its input.
void SetA(TScale value)
Accessors.
AffineFunctor()
Constructor.
bool operator==(const AffineFunctor &other) const
bool operator!=(const AffineFunctor &other) const
TOutput operator()(const TInput &x) const
virtual ~AffineFunctor()
Constructor.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.