您的位置:首页 > 大数据 > 人工智能

Halcon中“Not enough memory available”异常处理方法之一

2017-11-16 17:37 3523 查看
Halcon在执行threshold_sub_pix算子的时候,有几率抛出异常“Not enough memory available”。

查询手册,异常代码为:H_ERR_MEM 6001 Not enough memory available

解决方法:使用threshold算子替代即可。

异常代码:

threshold_sub_pix (ImageReduced, Border, threshold)


改善后

threshold(ImageReduced, Region1, threshold, 255)
gen_contour_region_xld(Region1, Border, 'border_holes')
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  halcon学习资料
相关文章推荐