Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

The template image is too small

I've got a problem with searching pattern from template file. So after I load template files located in \Template directory, program put them (in FOR loop) to the IMAQ Find Pattern 2 vi. And then I found problem - system gives error: The template image is too small. I don't know why cause template files was extracted from source image. See attached files for details.
0 Kudos
Message 1 of 3
(3,864 Views)
MartinZ,

To verify the behavior that you were experiencing, I opened the Pattern Matching Example that ships with LabVIEW, and made minor modifications to the block diagram so that instead of learning the pattern from the image on screen it instead opens the pattern from a file.

Using this method with the test.jpg and Dane1.jpg files from the zip folder that you posted, I had no trouble doing pattern matching, and received no error messages. I will attach the modified example to this post. Please review this VI and verify that you are loading and learning the pattern in the same way that I have done in the example. The only modifications that I have made to the example are shown in the block diagram when the VI loads.

I wish you the best of luck with yo
ur application.

Regards,
Jed R.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,864 Views)
That Modification really solved the Problem I've being encountering for a couple of Weeks.... Thanks so much... 🙂 🙂
0 Kudos
Message 3 of 3
(3,256 Views)