Hi,
I'd like to convert a 2D array to 1D array of cluster of 2 elements and I don't know how to do it.
I use IMAQ ImageToArray to have a 2D array like that :
0 0 0 255 255 0 0 0
0 255 0 0 0 0 255 0
255 0 0 0 0 0 0 255
0 255 0 0 0 0 255 0
0 0 0 255 255 0 0 0
and now I'd like to use IMAQ Fit Circle 2 but it needs "1D array of cluster of 2 elements" in input. More specifically, it needs an array of point coordinate cluster (with minimum 3 points coordinate cluster).
See my diagram attached.
Thanks a lot