Machine Vision

Showing results for 
Search instead for 
Did you mean: 

Delete one overlay out of multiple ROIs

Go to solution



I would like to delete one specific rectangle overlay ROI out of many overlay ROIs. My main purpose is that changing specific ROI's location. In order to do that, I can add a new ROI by clicking on the image. However, even though I delete previous one from array of ROIs, previous ROI is still visible. I think it is regarding "IMAQ Overlay ROI". Do you have any idea to delete the ROI or change its location? Thank you in advance. 

0 Kudos
Message 1 of 3
Accepted by topic author oguzk

When working with overlays, you can assign them to groups and delete specific groups.
If you work with ROIs, you can use IMAQ Ungroup ROI to split the ROI into individual countours, delete the desired countour, reassemble remaining array with IMAQ Group ROI and write it to the Property ROI. It works for me.

example roi delete.png

Good luck!

Message 2 of 3

Hello p4keal,

Thank you for clear answer. It worked for me too. 

0 Kudos
Message 3 of 3