Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to load a .png Pattern Image

Hi,
I am developing programs in VC++ 2005 to perform a simple pattern matching. Here is what I would like to achieve
 
Program A:
1. read a jpg image from file.
2. learn the pattern.
3. save the pattern image as .png.
4. close A
 
Program B:
1. load the .png pattern image. (no learning is performed)
2. load the target image.
3. perform pattern matching.
 
The problem I am encounting is that when B is executed, step 1 never works. The error message was "not an image". I am just wondering what may cause this error. Thank you very much.
0 Kudos
Message 1 of 2
(3,313 Views)
dzwang -

Could you post your code that is returning that error?  That would be helpful in diagnosing the problem.

Thanks!

Greg Stoll
Vision R&D
National Instruments
Greg Stoll
LabVIEW R&D
0 Kudos
Message 2 of 2
(3,291 Views)