Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Want to understand IMAQ LAbel and IMAQ mask to ROI

Hi All,

I am working with imaq label and imaq mask to ROI. From the document  found here , I understand the way labels are assigned to particles in an image when using imaq label. Are the ROIs of the particles also calculated in the same order, when imaq mask to roi is used, as they are in imaq Label?

Can anybody shed some light on this?   

Regards

Aveo

0 Kudos
Message 1 of 3
(4,295 Views)

Hello,

 

by creating a simple example, it seems that the scan direction in both cases is the same (the indexes of the labels and ROI's correspond):

 

Example_VI_BD.png

 

Just remember that the background is labeled as 0, so you need to decrement the labeled particle in order to get the ROI corresponding index.

 

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."
Message 2 of 3
(4,287 Views)

Hi Klemen ,

Nice example. I understood the assignment of particles.

Also I came across another vi called imaq label to roi.

I am attaching an improvement to your example which shows the difference between imaq label to roi, imaq mask to roi and imaq mask to roi after imaq label. 

Regards

Aveo

0 Kudos
Message 3 of 3
(4,282 Views)