halcon模板匹配

本文详细介绍了使用Halcon进行模板匹配的过程,包括读写文件、创建模板、查找模板、释放资源、边界处理以及一些额外的算子应用。重点讨论了create_shape_model和find_shape_model算子,以及如何通过设置'border_shape_models'来调整边界处理策略。
摘要由CSDN通过智能技术生成

一、模板匹配

1、读写文件

read_shape_model :Read a shape model from a file.
write_shape_model :Write a shape model to a file.

read_contour_xld_dxf:Read XLD contours from a DXF file.
write_contour_xld_dxf:Write XLD contours to a file in DXF format.

2、创建模板

create_shape_model — Prepare a shape model for matching.
create_shape_model_xld — Prepare a shape model for matching from XLD contours.
与create_shape_model 相比,算子create_shape_model_xld 不能指定模板组件的最小尺寸,为了消除形状模板中小的模板组件,在调用算子create_shape_model_xld 前,先用算子select_contours_xld消除短得轮廓。

3、查找模板

find_shape_model — Find the best matches of a shape model in an image.
find_shape_models — Find the best matches of multiple shape models.

4、释放

clear_shape_model — Free the memory of a shape model.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值