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