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,542 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,592 Views)

create a pattern from original image

0 Kudos
Message 3 of 4
(3,589 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,773 Views)