LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating masks for labeled particles

Solved!
Go to solution

Hi everybody,

 

I am trying to creat masks for each particles labeled by IMAQ label.vi. What I did was to use IMAQ labeltoroi, get the ROI for each particle, and  do IMAQ roitomask 2. However, the images of these masks are relative images. Do you know how to creat masks in the coordinate of the original image?

 

Best,

Doogie

 

 

0 Kudos
Message 1 of 3
(3,195 Views)
Solution
Accepted by topic author photoon

I think the lable particle just sets the value of each blob in a class to some integer ie 1,2,3,4 for 4 groups, (I dont have LV here right now so this is from, memory).  You can just itterate through the lable values and use the compare image function or threshold in range to make masks where you keep pixels that are equal to this value.  This will make a new image with only the pixes =1 where the value is the same as the labled value, it will have the same size and shape as the original lable image.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 3
(3,180 Views)

HI Falkpl,

 

It seems I did redundant steps after I had used IMAQ label vi. I have all the information by doing IMAQ label.

 

Thanks,

 

Doogie

0 Kudos
Message 3 of 3
(3,173 Views)