Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to designate a rectangular region within an image?

Hi, in IMAQ Match Pattern VI, there is an Optional Rectangle connector. How do i use the 1D array connected to the connector to designate the rectangular region that i'm looking for?

Thank you.
0 Kudos
Message 1 of 2
(2,982 Views)
The optional rectangle is an array of four values. They are the left, top, right, bottom sides of the rectangle.

The easiest way to define the rectangle is to draw a region of interest (ROI) on the image, and use the global rectangle from the ROI. It should be in the same format as the optional rectangle.

Bruce
Bruce Ammons
Ammons Engineering
Message 2 of 2
(2,982 Views)