Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

save pattern matching to file

I have a program that opens an image and performs pattern matching on it. How would I save the pattern matching information to a file? For example, I would like to save the location of the center of the pattern as well as the number that says how well the pattern matches the template. Thanks!

0 Kudos
Message 1 of 3
(3,313 Views)

How about writing the results to an INI file?  OpenG comes with support for writing clusters to an INI.  MGI has a VI "Write Anything" that also writes clusters to INI files. If you do not want text files, you could write the information to a binary file which will run fastest but does not allow to read it with a text editor.

0 Kudos
Message 2 of 3
(3,311 Views)

What about IMAQ Write File 2 VI ?


 

IMAQ Write Image And Vision Info File 2

Writes an image, along with extra vision information associated with the image, to a PNG file. This extra vision information includes overlay information, pattern matching template information, and calibration information. Note that this vision information can only be saved with the PNG file format.

Note  The extra vision information can be saved only with the PNG file format.

 

You can use Overlay toolbox to make the overlay information to be whatever you want.

Message 3 of 3
(3,299 Views)