Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

copy and past rois

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 

0 Kudos
Message 1 of 4
(3,251 Views)

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

0 Kudos
Message 2 of 4
(3,227 Views)

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

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

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

Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 4
(3,201 Views)