Allolib
1.0
C++ Components For Interactive Multimedia
|
Utilities for interpolation. More...
Functions | |
template<class Tf , class Tv > | |
Tv | bezier (Tf frac, const Tv &x2, const Tv &x1, const Tv &x0) |
Bezier curve, 3-point quadratic. More... | |
template<class Tf , class Tv > | |
Tv | bezier (Tf frac, const Tv &x3, const Tv &x2, const Tv &x1, const Tv &x0) |
Bezier curve, 4-point cubic. More... | |
template<class Tf , class Tv > | |
Tv | casteljau (const Tf &frac, const Tv &a, const Tv &b, const Tv &c, const Tv &d) |
de Casteljau algorithm for four point interpolation More... | |
template<class Tp , class Tv > | |
Tv | hermite (Tp f, const Tv &w, const Tv &x, const Tv &y, const Tv &z, Tp tension, Tp bias) |
template<class T > | |
void | lagrange (T *h, T delay, int order) |
Computes FIR coefficients for Waring-Lagrange interpolation. More... | |
template<class T > | |
void | lagrange1 (T *h, T delay) |
template<class T > | |
void | lagrange2 (T *h, T delay) |
template<class T > | |
void | lagrange3 (T *h, T delay) |
template<class Tf , class Tv > | |
void | cardinalSpline (Tv *w, const Tv *x, const Tf &f, double b) |
Compute weights for cubic cardinal spline. More... | |
template<class Tf , class Tv > | |
Tv | cubic (Tf frac, const Tv &w, const Tv &x, const Tv &y, const Tv &z) |
Cubic interpolation. More... | |
template<class Tf , class Tv > | |
Tv | cubic2 (Tf frac, const Tv &w, const Tv &x, const Tv &y, const Tv &z) |
Cubic interpolation. More... | |
template<class Tf , class Tv > | |
Tv | linear (Tf frac, const Tv &x, const Tv &y) |
template<class Tf , class Tv > | |
Tv | linear (Tf frac, const Tv &x, const Tv &y, const Tv &z) |
template<class Tf , class Tv > | |
Tv | linearCyclic (Tf frac, const Tv &x, const Tv &y, const Tv &z) |
template<class Tf , class Tv > | |
void | linear (Tv *dst, const Tv *xs, const Tv *xp1s, int len, const Tf &frac) |
template<class Tf , class Tv > | |
Tv | nearest (Tf frac, const Tv &x, const Tv &y) |
template<class Tf , class Tv > | |
Tv | bilinear (const Tf &fracX, const Tf &fracY, const Tv &xy, const Tv &Xy, const Tv &xY, const Tv &XY) |
template<class Tf2 , class Tv > | |
Tv | bilinear (const Tf2 &f, const Tv &xy, const Tv &Xy, const Tv &xY, const Tv &XY) |
template<class Tf , class Tv > | |
Tv | trilinear (const Tf &fracX, const Tf &fracY, const Tf &fracZ, const Tv &xyz, const Tv &Xyz, const Tv &xYz, const Tv &XYz, const Tv &xyZ, const Tv &XyZ, const Tv &xYZ, const Tv &XYZ) |
template<class Tf3 , class Tv > | |
Tv | trilinear (const Tf3 &f, const Tv &xyz, const Tv &Xyz, const Tv &xYz, const Tv &XYz, const Tv &xyZ, const Tv &XyZ, const Tv &xYZ, const Tv &XYZ) |
Trilinear interpolation between values on corners of a hexahedron. More... | |
template<class T > | |
void | cubic (T *dst, const T *xm1s, const T *xs, const T *xp1s, const T *xp2s, int len, T f) |
Utilities for interpolation.