Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get multiple ROI

I've read from previous posts that to get multiple ROI, one way is to generate array of ROI. After getting the array of ROI, what do I do with it?

My aim is to extract rect (or any shape) regions from the original image to a dest image. Is there any example on how I can achieve this? Thanks
0 Kudos
Message 1 of 2
(3,312 Views)
Hello.

I have attached a little example mockup of taking an ROI and using it to extract a piece of an image to a second image. Basically, (using LV 7.0 or later), you can get the ROI property from the image display, then use the ROI to Rectangle function to convert it to a bounding rectangle, then you feed that information into an IMAQ Extract VI, which takes a portion of an image and copies it into a destination image.

This should get you on your way.

Regards,
Colin C.
Applications Engineering
Colin Christofferson
Community Web Marketing
Blog
0 Kudos
Message 2 of 2
(3,298 Views)