10-28-2014 06:53 PM
We've had an vi for a while that defines and writes a template. What is done currently is that is uses the ROI information, extract the image to that size, and save it. All of the "vision information" is saved to separate file, including ROI, minimum score, and other pattern match settings. Thus far we have not used the "write vision and image info file 2" because at the time I didn't know that was possible.
I'm now at the point where I do want to store all of this information into the template.
The help file for "write vision and image info file 2" says:
"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, calibration information, and custom data.
I know what the ROI is, and calibration information, and custom data. But I'm confused as to what exactly comprises "pattern matching template information". I assume it's not the image itself, but some other data. Can someone clarify this? I can't seem to find what this is in the help.
I'm thinking the other settings that pattern match uses, such as minumum score, subpixel accuracty t/f etc, I can save as "custom data". My goal is to have everything necessary for the pattern match work contained within the template image itself.
Thanks
David Jenkinson
10-29-2014 01:45 AM
Hello,
as far as I know the template that is used for pattern matching holds information about the intensity image itself (and the corresponding pyramid levels), match offset and the mask (defines the regions to consider or ignore when calculationg the correlation score). If you want to use other parmeters for matching, you can save them in a .png file too, using IMAQ Write Custom Data (IMAQ Read Custom Data). With this, you could specify all the options inside a template image and use them in your appliation.
Best regards,
K