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