ldpk
|
A general linear extender, based on a 2x2-matrix. More...
#include <ldpk_linear_extender.h>
Public Types | |
typedef VEC2 | vec2_type |
typedef MAT2 | mat2_type |
![]() | |
typedef VEC2 | vec2_type |
typedef MAT2 | mat2_type |
Public Member Functions | |
linear_extender () | |
Default: unit matrix. | |
void | set (const mat2_type &m) |
Passing the matrix. | |
template<class E0 , class E1 > | |
void | set (const E0 &e0, const E1 &e1) |
Building the matrix from two extenders. Order is m(E0) * m(E1). | |
template<class E0 , class E1 , class E2 > | |
void | set (const E0 &e0, const E1 &e1, const E2 &e2) |
Building the matrix from three extenders. Order is m(E0) * m(E1) * m(E2). | |
template<class E0 , class E1 , class E2 , class E3 > | |
void | set (const E0 &e0, const E1 &e1, const E2 &e2, const E3 &e3) |
Building the matrix from four extenders. Order is m(E0) * m(E1) * m(E2) * m(E3). | |
vec2_type | eval (const vec2_type &p) const |
eval() is per definition removal of lens distortion (undistort). | |
vec2_type | eval_inv (const vec2_type &q) const |
eval_inv() is applying lens distortion (distort) | |
vec2_type | eval_inv (const vec2_type &q, const vec2_type &p_start) const |
Generally (but not here), an initial value is needed for calculating the inverse. | |
const mat2_type & | get_mat () const |
The matrix for this extender. | |
const mat2_type & | get_mat_inv () const |
The inverse matrix for this extender. | |
A general linear extender, based on a 2x2-matrix.