05-31-2010 12:18 PM
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
05-31-2010 11:32 PM - edited 05-31-2010 11:33 PM
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"
05-31-2010 11:56 PM
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?
06-01-2010 12:00 AM
06-01-2010 12:18 PM
Please see the attachment
Thanks