Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Use ROI as source image

I am a beginer of LabVIEW and I have a question about the ROI. How can I use ROI as my source image?

Basically, the program has two windows. The first window displays the original picture and you can select ROI on it. The second window displays the ROI you selected. And the issue is I would like to use this ROI as my source image fed into some functions so that I could get the line contour, ROI size, etc.

 

Thanks

0 Kudos
Message 1 of 5
(3,499 Views)

You can use an IMAQ extract to define and get the required part of the image.You should also define the img dst uniquely. This output can be fed to the other image processing functions as required.

 

If you want to dynamically define the roi. You can use a "Imaq select rectangle"

Message Edited by muks on 06-01-2010 10:03 AM
0 Kudos
Message 2 of 5
(3,488 Views)

Thank you for your reply.

 

"You can use an IMAQ extract to define and get the required part of the image."

This part I have done.

 

"You should also define the img dst uniquely. This output can be fed to the other image processing functions as required."

 Don't really know how does the dst work.

The issue is I use a case structure and at 0 case it could get ROI, at 1 case it just sits there and does nothing.

So I would like to save the ROI I selected in the 0 case and feed it to other functions as a source image.

 

Maybe this is more clear if I state it this way.

 First I use a retangle to select a ROI, and then I want to get a line contour on the selected ROI region by drawing a line. (Source image displayed in one window and ROI displayed in another window, and I would like to draw a line on the ROI window and get the line contour.)
Is this clear enough?

0 Kudos
Message 3 of 5
(3,484 Views)
Ok now that you are able to extract the roi that you want try using a "Imaq select line". Also post your vi if possible.
0 Kudos
Message 4 of 5
(3,482 Views)

Please see the attachment

Thanks

0 Kudos
Message 5 of 5
(3,457 Views)