05-15-2014 12:58 PM
Hello,
I'm verry new in labview so I don't know a lot about it (yet).
I use a Vision assistant from labview to detect red points in a scene, another one assistant to dectect blue points and a third one to detect green points. I receive coordinates and area of each point detect by all the assistants, for each color I only use the two biggest point. So Now I have six points, two of each color.
For the experience I'm working on, I need to give a ID to each points, red => 1 and 2, blue => 3 and 4, green => 5 and 6.
All of these work perfectly. I need help for the following: I need to calculate the angle between the vector 12 and 23 and the vector 23 and 56.
I have no idea how to it in labview and the only stuff I found on the web was the NI documentation on Unit vector, and i havn't understand anything...
Thanks for your help ! 🙂
05-15-2014 01:31 PM
convert the vectors to complex (x=RE, y=IM), subtract pairwise, then get theta.