获取拼接结果 - ImageStitchGetResult
函数简介
获取当前拼接实例的拼接结果图像,可返回轨迹数据。
接口名称
ImageStitchGetResult
DLL调用
int64_t ImageStitchGetResult(int64_t instance, int64_t imageStitch, int64_t* trajectory);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| imageStitch | 长整数型 | 拼接实例句柄 |
| trajectory | 长整数型指针 | 输出参数,可为0;返回轨迹数据的字符串指针 |
示例
int64_t traj = 0;
int64_t result = ImageStitchGetResult(instance, st, &traj);
if (result) {
FreeImagePtr(instance, result);
}
if (traj) {
FreeStringPtr(traj);
}
返回值
长整数型:返回拼接后的图像句柄,失败返回0。
注意事项
- 轨迹数据指针需调用 FreeStringPtr 释放内存。
- 返回的图像需调用 FreeImagePtr 释放内存。
