Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ select lines - multiple?

Hi All, first time poster here,

 

I have built up an image program in LABVIEW where the user selects a line on an image and then the gradient is calculated, and via merged overlay, displayed to the user along with their orginal line.  They can then save the file, reload it, and put another line overlay, of their chosen colour, to build up the image we want, which is our original image with 3-4 lines drawn on it with gradients shown.

 

This is a bit unwieldy, and I would like the user to be able to select a number of lines in one go.

 

using IMAQ select line, the user can press 'ctrl' as they select multiple lines, but only the selected line is output back to the labview program for me to use in the calculations.

 

does anyone know how I can have the user select multiple lines using 'ctrl' and then for all the line data to be used programmatically?

 

Thanks, Ashnats

0 Kudos
Message 1 of 3
(3,070 Views)

Use the imaq select line inside a loop and get the data out of the loop using enable indexing.

0 Kudos
Message 2 of 3
(3,066 Views)

Thanks for the quick and helpful response!

 

It is definitely an immediate improvement using an array - so thanks for this solution - but am I right to say that this method (unless I am implementing it wrong?) still requires the user to select a single line, click ok, select another line, click ok, etc. for the required iterations e.g. in a for loop.

 

My ideal solution would be for the user to be able to draw all the lines they want, on a single 'select line' window, then click ok when they are happy - and for me to get the finished lines out in an array.  do you think this is possible?

 

Thanks, Ashnats

 

0 Kudos
Message 3 of 3
(3,061 Views)