Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Draw circles based on output from Shape Detection VI

Hi,

 

You are welcome.

 

i) If you want to separate objects and still want to want to measure them accurately, then I vouch for watershed segmentation. Apart from that, I think they have a slightly different scope of use. Because if you erode an object, you are deleting pixels from it and effectively making it smaller.

 

ii) First you'll have to store the different images in memory. I think the VIs names were IMAQ Image Create (to allott memory space. Remember unique names!) and IMAQ Image Copy or something (to store the actual image). Then for creating the overlay I think I used IMAQ Create Overlay and IMAQ Merge. The Particle Detection VI should output one single image containing all the detected particles in that image, so you don't have loop it (unless you are analyzing multiple images). You then combine this image with the original grayscale image.

 

- Ahsin

0 Kudos
Message 11 of 18
(2,205 Views)

When you said "different images in memory" means that multiple copy of the same image, only with different names, right? Or am I wrong? I guess I'll try out according to your suggestions and see the results first before asking any further. Thank you again for your help.

0 Kudos
Message 12 of 18
(2,202 Views)

Hey all,

 

I am trying to figure out how to draw the circles found by IMAQ Detect Circles into a IMAQ Image. The VI Draw Crcles can print circles based on their radius and position but just works for pictures. How do I convert an IMAQ image into a picture? Or better how do I use the circles report to draw the circles directly on an IMAQ image?

 

Best regards,

E. Arroyo

0 Kudos
Message 13 of 18
(2,133 Views)

Hello,

 

just generate the circle data using the radius and the center (and overlay it):

 

Example_VI_BD.png

 


If you want to "transform" IMAQ to 2D Picture:

 

IMAQ to 2D image_BD.png

 

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 14 of 18
(2,125 Views)

Hi Klemen,

 

Thanks! That´s a good idea.

I actually managed to do it in another way in the end. Just create a bounding box by using the radius and center, and then overlay it by using Overlay Oval.

0 Kudos
Message 15 of 18
(2,120 Views)

Probably even a better/simpler solution!

 

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 16 of 18
(2,116 Views)

I am doing a project based on finding radii of circle,when image displays the object(circle) data is shown but as soon as object moves out data displayed also gets removed.Is there any means by which i can store this data displayed?

0 Kudos
Message 17 of 18
(2,071 Views)

Hello,

 

if you want to store data from current iteration to the next, one option is to use shift registers.

If you explain the problem in more detail (images, code, etc...) you could get more helpful answers...

 

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 18 of 18
(2,062 Views)