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)

执行效果:

 

posted @ 2025-06-25 18:28  广阔之海  阅读(22)  评论(0)    收藏  举报