如何删除重复点,并在Halcon(MVTEC软件)中绘制X轴和Z轴的图表



我正在做一个项目,需要在图形上绘制激光线图像。我得到了激光点的坐标。我将在Halcon(MVTEC软件(中使用点绘制一个二维图有些点是重复的,这会妨碍正确绘制图表。如何删除重复点?画一张X轴和Z轴的图?请通过以下链接下载坐标文件:

https://s21.picofile.com/d/8445324542/15c1902a-0828-4692-b0ce-a65651306111/Coordinates.rar

数据集中实际上没有重复点。问题是,您的数据基本上是按错误的轴排序的。你可以像这样重新排序和绘制它们:

read_tuple ('Rows.tup', Rows)
read_tuple ('Columns.tup', Cols)
* dev_inspect_ctrl (['plot_xy', Cols, Rows])
Indices := sort_index(Cols)
Rows2 := Rows[Indices]
Cols2 := Cols[Indices]
dev_get_window (WindowHandle)
plot_tuple (WindowHandle, Cols2, Rows2, [], [], [], [], [])

最新更新