Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't I drag an ROI that was created programmatically?

Using IMAQ Overlay ROI, I created an ROI on an image display.  The ROI shows up in green as expected.  However, when I select the arrow tool, I cannot drag the ROI.  Is there a way to do this?  In contrast, if I create an ROI from the front panel using the ROI tools, say a circle, then I can switch to the arrow tool and drag it around.

 

I'm working on a tracking application where the program will identify a point and display an ROI around it.  In case the algorithm fails to correctly identify the point, I want the user to be able to drag the ROI to a new position.

 

Bill G.

0 Kudos
Message 1 of 2
(3,665 Views)

Hi,

You cannot perform action on an overlay. In order to achieve what you want to do, I suggest you to use the ROI property in an image property node. Then just pass your ROI coordinates, the ROI will be updated automatically whenever your coordinates changes. You can drag a ROI this is impossible with an overlay.

ROI.png

 

Regards

0 Kudos
Message 2 of 2
(3,648 Views)