LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Superimposing pictures programatically

Questions:

How do I take an image in a say jpg file for example and get it into labVIEW and be able to manipulate it programmatically. What I am trying to do is take another picture (from file), and programmatically superimpose the smaller picture onto the bigger picture. An example of what I want to do is take a plain white playing card image, (like a deck of cards), and then I want to be able to take some drawing that I made (or just a string of numbers) and superimpose it onto this card so that when I clicked on a deck of cards to flip over the top one the new image, (of plain white card with drawing or string superimposed on it), I want the new image image to be as if it were originally drawn that way in a paint program.


Thanks,

CalTech
0 Kudos
Message 1 of 4
(3,132 Views)
You need to use "Read JPEG File.vi" to load all of your images. These images can be displayed in a picture control using "Draw Flattened Pixmap.vi". By using several "Draw Flattened Pixmap.vi" nodes in a row, you can composite your images together.

These images support masking through the use
of "Create Mask.vi". (I recommend you load .BMPs or .PNGs if you are going to use masks.) You can also draw text into the picture using either "Draw Text at Point.vi" or "Draw Text in Rect.vi".

I wrote a simple example to illustrate.

Jon Fournie
LabVIEW R&D
National Instruments
Download All
Message 2 of 4
(3,132 Views)
Jon,
By any chance could I get that VI saved in 6.1 format so that I can run it, currently 6.1 is all I have untill I get to the 7.0 Student version.


Thanks,

CalTech
0 Kudos
Message 3 of 4
(3,132 Views)
Sorry for the delay...

I remade the VI for 6.1, but it is a little different and doesn't support the masking. (The picture control saw some improvement between 6.1 and 7.0.) Just use the new VI with the same images.

LV 6.1 should still work for what you want to do.

Jon Fournie
LabVIEW R&D
National Instruments
0 Kudos
Message 4 of 4
(3,132 Views)