Image Component Library (ICL)
|
A standard linear mapping class for the 1D case f(x) = m * x + b. More...
#include <LinearTransform1D.h>
Public Member Functions | |
LinearTransform1D (float m=0, float b=0) | |
base constructor with given parameters m and b | |
template<class T > | |
LinearTransform1D (const utils::Range< T > &s, const utils::Range< T > &d) | |
spedical constructor template with given source and destination range | |
float | operator() (float x) const |
applies the mapping to a given x -> f(x) = m * x + b | |
Public Attributes | |
float | m |
slope | |
float | b |
offset |
A standard linear mapping class for the 1D case f(x) = m * x + b.
icl::math::LinearTransform1D::LinearTransform1D | ( | float | m = 0 , |
float | b = 0 |
||
) | [inline] |
base constructor with given parameters m and b
icl::math::LinearTransform1D::LinearTransform1D | ( | const utils::Range< T > & | s, |
const utils::Range< T > & | d | ||
) | [inline] |
spedical constructor template with given source and destination range
float icl::math::LinearTransform1D::operator() | ( | float | x | ) | const [inline] |
applies the mapping to a given x -> f(x) = m * x + b
offset
slope