07-17-2013 08:13 AM
Hi there,
I'm using LV10 and I'd like to know if there's a simple way to create two different ROIs in one image display with different use.
For example:
An avi file is displayed. I create a ROI by drawing on the image display to shrink the regarded area (to save computing resources and time) of the avi. I create a second ROI (also by drawing on the image display) to set a location for a colour analysis.
At the moment, I'm using only one ROI by drawing it on a display and getting its data by using a property node. I reckon this can't work with two ROIs in one display.
My idea is to use a switch and local variables to get what I need, but this seems quite circuitous.
Is there any smarter way?
07-17-2013 10:35 AM
Probably IMAQ Ungroup ROI is what you're looking for?
http://zone.ni.com/reference/en-XX/help/370281M-01/imaqvision/imaq_ungroup_rois/
Andrey.
07-18-2013 01:39 AM
Hello seasoo,
alternatively you could use "unbundle by name" and then index the contours (for loop or index array). After indexing, use "unbundle by name" again to extract the points of each ROI - top left point, bottom right point.
Best regards,
K