15 #ifndef __IPSDKMATH_INTERPOLATION_H__ 16 #define __IPSDKMATH_INTERPOLATION_H__ 36 return (1-x)*f0 + x*f1;
96 return f0 + 0.5 * x*(f1 - fM1 + x*(2.0*fM1 - 5.0*f0 + 4.0*f1 - f2 + x*(3.0*(f0 - f1) + f2 - fM1)));
148 #endif // __IPSDKMATH_INTERPOLATION_H__ Definition of import/export macro for library.
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
IPSDK_FORCEINLINE ipReal64 linearInterpolation(const ipReal64 x, const ipReal64 f0, const ipReal64 f1)
function allowing to compute linear interpolation between two values
Definition: Interpolation.h:34
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
IPSDK_FORCEINLINE ipReal64 triLinearInterpolation(const ipReal64 x, const ipReal64 y, const ipReal64 z, const ipReal64 fX0Y0Z0, const ipReal64 fX1Y0Z0, const ipReal64 fX0Y1Z0, const ipReal64 fX1Y1Z0, const ipReal64 fX0Y0Z1, const ipReal64 fX1Y0Z1, const ipReal64 fX0Y1Z1, const ipReal64 fX1Y1Z1)
function allowing to compute a tri linear interpolation
Definition: Interpolation.h:71
Base types for multiplatform compatibility.
IPSDK_FORCEINLINE ipReal64 cubicInterpolation(const ipReal64 x, const ipReal64 fM1, const ipReal64 f0, const ipReal64 f1, const ipReal64 f2)
function allowing to compute cubic interpolation between two values
Definition: Interpolation.h:92
IPSDK_FORCEINLINE ipReal64 biCubicInterpolation(const ipReal64 x, const ipReal64 y, const ipReal64 f[4][4])
function allowing to compute a bi cubic interpolation
Definition: Interpolation.h:110
IPSDK_FORCEINLINE ipReal64 triCubicInterpolation(const ipReal64 x, const ipReal64 y, const ipReal64 z, const ipReal64 f[4][4][4])
function allowing to compute a tri cubic interpolation
Definition: Interpolation.h:132
IPSDK_FORCEINLINE ipReal64 biLinearInterpolation(const ipReal64 x, const ipReal64 y, const ipReal64 fX0Y0, const ipReal64 fX1Y0, const ipReal64 fX0Y1, const ipReal64 fX1Y1)
function allowing to compute a bi linear interpolation
Definition: Interpolation.h:48