0

I am doing a project where I need to draw a laser line image on a graph. I got the coordinates of the laser points. I am going to draw a two-dimensional graph in the Halcon (MVTEC software) using points Some points are duplicates and this prevents the diagram from being drawn correctly. How can I remove duplicate points? And draw a diagram with X and Z axes? Please download the coordinate file via the link below:

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

2
  • Could you please provide the points? Commented Dec 23, 2021 at 10:50
  • Please download the coordinate file via the link below: s21.picofile.com/d/8445324542/… Commented Dec 25, 2021 at 6:45

1 Answer 1

0

There are actually no duplicate points in your dataset. The problem is that your data is essentially sorted by the wrong axis. You can re-sort and plot them like this:

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, [], [], [], [], [])
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.