02-15-2017 04:27 AM - edited 02-15-2017 04:28 AM
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.
02-15-2017 04:43 AM - edited 02-15-2017 04:47 AM
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.
02-15-2017 04:52 AM
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.
02-15-2017 10:18 AM
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.