Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Intend to check if the given ROI drawn in a rectangle or not

Hi,

 

I am using the "Mouse up" event case on an image. Post this "mouse up" event I intend to enable a button that saves the ROI drawn (during the course of "mouse up") event. How can I test that the obtained ROI is a rectangular ROI or not?

 

Thanks in anticipation.

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

I think you could use the GetLastEvent Method in the image display. It gives you the type of the tool used.

 

I attached an example that shows how to use it.

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