Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Sort coordinates from pattern matching in Vision Builder

Hi
 
I've done a match pattern in Vision Builder so I get coordinates for my matches. I need to do some calculation from these coordinates, but first I need to sort them ascending for the X-coordinates.
I need to sort the coordinates, because I need to calculate distances between some specific points, but the match pattern function find my matches in random order even though they are along a straight line.
Is it possible to sort my coordinates within Vision Builder and if so, how?
 
Kind regards
Simon
LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
0 Kudos
Message 1 of 2
(3,086 Views)
I have now found a way putting my coordinates into an array, by making an external VI that links to each coordinate I find. This kinda works fine, but I have to find more than 80 coordinate-pairs (X,Y) on each object, so the work linking to the coordinates is horrible. Is there another way to link more data using an external VI than just 1 at a time?
LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
0 Kudos
Message 2 of 2
(3,073 Views)