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.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

imaqlearnpattern4

Operating environment: vs2013 + NI Vision module 2015

i use imaqlearnpattern4 to learn a template, it's no error when used.

but when i use imaqmatchpattern4 ,it have one error (you can find in picture)

 

in other test, i use NI assistant create a template ,use the same as imaqmachpattern4 code, i find

is ok can find the match roi.

test1.pngtest2.png

0 Kudos
Message 1 of 4
(4,566 Views)

Operating environment: vs2015 + NI Vision module 2017

i want to use imaqlearnpattern4 to learn a template,but i do not not know create a  template,

can you tell me?

0 Kudos
Message 2 of 4
(3,616 Views)

create a pattern from original image

0 Kudos
Message 3 of 4
(3,613 Views)

you can use callbackevent get roi , then use imaqGetContour get rect from roi ,you use imaqCopyrect to copy image ,in the end  you can use imaqlearnpattern4 

0 Kudos
Message 4 of 4
(2,797 Views)