返回interp使用的插值类型的名称。
const char *kml_float_interp2d_name(const kml_float_interp2d *interp)
const char *kml_double_interp2d_name(const kml_double_interp2d *interp);
参数名 |
类型 |
描述 |
输入/输出 |
---|---|---|---|
interp |
kml_float_interp2d*, kml_double_interp2d* |
插值对象指针。 |
输入 |
#include "kipl.h"
const size_t xSize = 4; const size_t ySize = 4; float xArr[4] = {1,1.33,1.67,2}; float yArr[4] = {1,1.33,1.67,2}; float* zArr = (float*)malloc(xSize * ySize * sizeof(float)); float x = 1; float y = 1; float z = 0; kml_float_interp2d *interp = kml_float_interp2d_alloc(kml_float_interp2d_bicubic, xSize, ySize); const char *name = kml_float_interp2d_name(interp);