---
title: kml_?_interp2d_free
description: "释放插值对象interp。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpckit/devg/kunpengaccel_kml_0524.html
sourcePath: /source/zh/kunpenghpcs/hpckit/devg/kunpengaccel_kml_0524.html
indexId: cb15afe4372ce820194824315a44882eccc616fe955003f517f1be0674b3d39861
---
# kml_?_interp2d_free

释放插值对象interp。

#### 接口定义

void kml_float_interp2d_free(kml_float_interp2d *interp)

void kml_double_interp2d_free(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));
kml_float_interp2d *interp = kml_float_interp2d_alloc(kml_float_interp2d_bicubic, xSize, ySize);
kml_float_interp2d_init(interp, xArr, yArr, zArr, xSize, ySize);
kml_float_interp2d_free(interp);
```
