Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 70257

Convert 2D array to 1D array of cluster of 2 elements

$
0
0

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


Viewing all articles
Browse latest Browse all 70257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>