LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save/retrieve ROI using CVI 6.0

I see a response reguarding Labview but not CVI. I need to be able to save and restore several different ROIs using CVI 6.0. Any suggestions?
0 Kudos
Message 1 of 5
(3,599 Views)
TZAJ,

Here is an example that should help you out. This example uses an ROI with multiple regions to analyze. The imaqAddContour functions are used to add the multiple regions to a ROI. This ROI is then converted to an image, labeled, and used to obtain information on these areas with imaqQuantify.

Regards

Dan
National Instruments
0 Kudos
Message 2 of 5
(3,599 Views)
Helpful but not what I was looking for. The ROIs need to be able to be reshaped by a user, then the dimensions of the ROI need to be able to be saved and latter restored and recreated. So, lets say that you have some circular image on the Imaq window. Using the draw tools, I create a circlular ROI that surrounds the circle somewhere on the window, I would like to be able to save the attributes of the ROI and be able to recreate it latter in the same spot on the window. This is a laser beam profile application and I move my camera to other places and then back to the original and the beam should show up within the restored ROI almost in the exact place (because of beam apertures). I have several places that I want to move my camera to and create an ROI for every pos
ition, then when the camera is moved to a specific spot using a button press, I can restore the previously saved ROI for that particular spot. Make sense?

Thanks,

Tom Zajicek
0 Kudos
Message 3 of 5
(3,599 Views)
Hi Tom,

I think I'm getting an idea of what you're trying to do, but a little confused as to where you are at this point. Are you at least thus far able to have a functional user interface where the user can adjust the ROI? Once that much is achieved you should be able to use the imgSessionGetROI and imgSessionSetROI functions to "save" the ROI so that you can place it at the same spot in the frame later on.

Regards

Dan
National Instruments
0 Kudos
Message 4 of 5
(3,599 Views)
Yes, I have a fully functional interface that moves the camera into place and allow for the user to create an ROI and manipulate it. I was unaware of the imgSessionGetROI and SetROI functions. I will look into them. Have they been there for a while? I have an older version of the connectivity toolkit (I am at home and my version # is at work).

Thanks,

Tom Zajicek
0 Kudos
Message 5 of 5
(3,599 Views)