Halcon輪廓插值方法
Halcon代碼:
* 原輪廓,只有兩個點 Row := [100, 500] Col := [100, 500] gen_contour_polygon_xld (Contour, Row, Col) * 輪廓插值,采樣間距100 tuple_gen_const (|Row|, 0, Radius) gen_contour_polygon_rounded_xld (ContourNew, Row, Col, Radius, 100) * 顯示插值后的輪廓點 get_contour_xld (ContourNew, RowNew, ColNew) gen_cross_contour_xld (Cross, RowNew, ColNew, 10, 0)
執行效果:


浙公網安備 33010602011771號