Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of Points required as input for IMAQ Overlay Points function

How can I prepare the Array of Points (defined as array of clusters class) required as input for IMAQ Overlay Point function?
Specifically, I have the dll that gives me 2xN array on x,y coordinates. N - number of points is unknown in advance, but calculated and reported by dll. I do not knot how to convert this output array to array of clusters required for "IMAQ overlay points".

Will be very thankfull for advise of anyone.

Boris K.
0 Kudos
Message 1 of 4
(3,351 Views)
Hello Boris,

The easiest way to accomplish this is to iterate through the each of the elements in the dimensions, bundle their values into clusters, and build an array out of the clusters. For instance, if your array is 2x5, bundle elements (0,0) & (1,0), (0,1) & (1,1), etc. I have taken the liberty of creating a quick example program for you. Hope this helps. Take care!


Regards,

Aaron B.
National Instruments
0 Kudos
Message 2 of 4
(3,337 Views)
Dear Aaron,

Thank you very much for preparing the example vi for me. Unfortunately I can not open it because I use 7.0 version and your example is written on 7.1.1. Is it any way to help me?

Thank you in advance,

Boris
0 Kudos
Message 3 of 4
(3,332 Views)
0 Kudos
Message 4 of 4
(3,329 Views)