Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get access to vision info, especially pattern matching templates?

Is there a way to get access to the pattern matching template information contained in an image?
I need to save this info along other data into one large setup file. I know that I can use a PNG file to store/retrieve the information, but I don't want to do it, because of the large number of files I need.
I'm already saving the image itself in the setup file, but the extra vision info seems to get lost after loading.
Any ideas?

Ingo Bartsch
0 Kudos
Message 1 of 3
(3,162 Views)
Saving this to the file using write image and vision info function saves the image and the vision info to the file. You could then read this file in as a byte stream and save it the setup file. During the load process you could then save out the byte stream back as a png file and the load the png file using read image and vision info function.

How are you saving the image to the setup file?

Satish

PS: I used generic names for the functions because I didn't know what ADE you are using.
0 Kudos
Message 2 of 3
(3,159 Views)
Thanks for your answer, Satish!

I am using LabView for the development.
The image is part of a big cluster I'm saving with the "WriteFile" function. This function is intelligent enough to save the image data instead of only a pointer. But unfortunately the extra vision info gets lost.

Your solution would be a workaround. Inbetween I've choosen a different one: Because I only need to have the pattern matching template information I simply generate this info again when loading my setup file.

Perhaps NI will add such a feature (to get access to the vision info programatically) in the future!?
Or does it already exist and we simply can't find it?

Ingo
0 Kudos
Message 3 of 3
(3,148 Views)