halcon模板匹配

一、模板匹配

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.

你可能感兴趣的:(c#,计算机视觉)