Halcon模板匹配--Shaped Based
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)