01-08-2009 10:19 AM
Hi!
I would like to draw a perfectly rounded roi, then copy it and past more times on the same image in order to get information in each part, using IMAQ Quantify.
Did anybody find a clever way to draw, copy and past it?
Thank You very much.
Antonio
01-09-2009 08:30 AM
Hi Antonio!
All images in NI Vision are rectangular, so you can't extract a circular ROI; you can only extract a rectangular ROI and then mask out the unwanted region.
In this KB you can find an example (Roi to Mask.vi) that shows how you can do this.
You could have a look also at this forum.
Best regards,
Serena
01-12-2009 06:55 AM
Hi, Serena, and thank You for your reply.
In my first post I think i was not very clear, as usual happens when dealing with something as wide and complete as Labview.
Please find attacched a vi I modified from LV examples. By this vi i can extract information from an image using a very clever way to draw ROI: infact i can draw a roi without masking original image durin drawing process, and it is very usefull when the original image is very complicate and not pefectly clear.
I would like to change this vi in order to draw masks with exact sizes, for example a mask with exact x position, y position and outer radius, always manteining the masked image perfectly visible.
Any suggestion?
Thank you again.
Antonio
01-12-2009 08:22 AM
By using the event structure, you can track the position of the mouse while it is in the image window. From this position, you could generate a fixed diameter circular ROI and display it on the image. If you check for mouse clicking, you could add this ROI to your analysis routine. You could also add it to a list of regions to analyze and use overlay to add the circle to the image.
Bruce