Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Two ROIs with different purposes in one display

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?

 

 

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

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.

 

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

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


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 3 of 3
(3,911 Views)