LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vision Module: IMAQ Rake 3.vi "Invalid ROI-Descriptor"

Hey!

 

I have a problem. I use a binary picture with particles in it (uploaded an example, my original has four particles instead of two), and label these particles with IMAQ Label.vi, which works perfectly. Then I use LabelToROI.vi to extract ROIs from my labels. Seems like that works also, I uploaded a pic of the 4 ROIs that are generated from that vi.

 

Feeding this Data, meaning the picture and the ROIs to IMAQ Rake 3.vi, it should spit out edge points of my particles. But the Rake 3.vi always says "Invalid ROI Descriptor" and doesn't put any data out.

 

Theres not much Info about the Rake 3.vi in the help files, and I cant make it run with my data.

Does anyone know why it doesn't work? Do I have to convert my binary picture (which only has pixels values of one or zero) to another picture type?

 

Thanks for any help.

Download All
0 Kudos
Message 1 of 4
(3,117 Views)

Rake 3 takes Rectangle or Rotated rectangle ROI, make sure your ROI matches the input requested by rake 3.vi

 

Edit: It would be better if you can add your VI and sample image too to debug better.

Thanks
uday
Message 2 of 4
(3,106 Views)

Thanks for your help. The Main VI is too big, so I just made a screenshot of the relevant parts of my VI.

 

Is there a way to convert these ROIs to rectangle? I tried the ROItoRectangle.vi function and wired it with RectangletoROI.vi to get an ROI again but that doesn't work either.

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

Without seeing proper code it is difficult and leaves with some hit and trials.

-I see that you are using Particle Analysis Report, Use the bounding rectangle output and use it for ROI.(You might need to convert rectangle to ROI)

-IMAQ Label.vi will be having Polygon ROI type to exactly define the contour of particle, which is not suitable for Rake

-If you can explain what you are trying to achieve atleast maybe we can think of better solution.

Thanks
uday
Message 4 of 4
(3,058 Views)