Halcon模板匹配--Shaped Based

参考:
基于HALCON的模板匹配方法总结

1.Create XLD

gen_circle_contour_xld( : ContCircle : Row, Column, Radius, StartPhi, EndPhi, PointOrder, Resolution : )

2.Prepare a shape model for matching from XLD contours

create_shape_model_xld(Contours : : NumLevels, AngleStart, AngleExtent, AngleStep, Optimization, Metric, MinContrast : ModelID)

3.Write shape model to file

write_shape_model( : : ModelID, FileName : )

4.Read shape model from file

read_shape_model( : : FileName : ModelID)

5.Find the best matches of a shape model in an image.

find_shape_model(Image : : ModelID, AngleStart, AngleExtent, MinScore, NumMatches, MaxOverlap, SubPixel, NumLevels, Greediness : Row, Column, Angle, Score)

posted @ 2018-05-08 18:02  summer91  阅读(345)  评论(0编辑  收藏  举报