LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting images (png) to templates

I have hundreds of images (png) that I want to convert into templates to be used in "IMAQ Match Pattern 2".

 

I don't care about the angle the template was captured as and such, I will set them to default values.

 

Is there anyway to open the images (1 at a time) in LabVIEW and then save as a template image (png)?

 

Many Thanks,

 

A.

0 Kudos
Message 1 of 4
(2,731 Views)

ADL,

 

If possible I would store all of the images in a single file with incrementing file names.  For example have a folder of images called Images that contains img1.png, img2.png, img3.png ...

 

Then you can use a for loop to load each image and process it accordingly.  The example below shows how to load the images one a time, but does not do any processing:

 

SP32-47.jpg

 

Regards,

 

Sam K

Applications Engineer

National Instruments

www.ni.com/support

0 Kudos
Message 2 of 4
(2,702 Views)
I think you missed my goal, I have 100's of images edited from paintbrush, but index to convert them to template images that can be usedin pattern match functions. A standard png cannot be used as a template for pattern matching, as the pattern matching file needs to contain extra information. What extra data is needed to e written into that template image, and is there a labviewvi to do that. A.
0 Kudos
Message 3 of 4
(2,689 Views)

ADL,

 

You will need to use the IMAQ Learn Pattern 2 VI.

 

IMAQ Learn Pattern 2 VI

http://zone.ni.com/reference/en-XX/help/370281M-01/imaqvision/imaq_learn_pattern_2/

 

-Sam K

Applications Engineer

National Instruments

www.ni.com/support

0 Kudos
Message 4 of 4
(2,681 Views)