From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Match Pattern - Efficiency of ROI descriptor

Solved!
Go to solution

Attached is the updated VI.

I also tried chaning the ID of the ROI descriptor to "Internal". This reduced the time for that method by 1 ms which is still quite a difference to the 4 - 5 ms of the cropping / camera ROI.

So whatever the IMAQ Match Pattern VI is doing internally, to me it seems faster to crop the image (and adjust the coordinates afterwards if required).

0 Kudos
Message 11 of 13
(1,115 Views)
one of other method that you can use is re sample before matching before loop
because matching algorithm always try to reduce image size before operate
you can do it before your loop it could make your code faster
0 Kudos
Message 12 of 13
(1,111 Views)
Apologies. I think i misunderstood the Contour type.
Thanks
uday
0 Kudos
Message 13 of 13
(1,104 Views)