这个函数将分配一个新的类型T对象,新对象在x方向有长度为xsize的网格,在y方向有长度为ysized的网格。
kml_float_interp2d *kml_float_interp2d_alloc(const kml_float_interp2d_type *T, const size_t xsize, const size_t ysize)
kml_double_interp2d *kml_double_interp2d_alloc(const kml_double_interp2d_type *T, const size_t xsize,
const size_t ysize);
参数名 |
类型 |
描述 |
输入/输出 |
---|---|---|---|
T |
kml_float_interp2d_type*, kml_double_interp2d_type* |
类型对象指针。 |
输入 |
xsize |
size_t |
x方向网格长度。 |
输入 |
ysize |
size_t |
y方向网格长度。 |
输入 |
#include "kipl.h"
const size_t xSize = 4; const size_t ySize = 4; kml_float_interp2d *interp = kml_float_interp2d_alloc(kml_float_interp2d_bicubic, xSize, ySize);