Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

merging image sequences into one avi

I am acquiring images from two cameras, one RGB one 16-bit, I am then showing both simultaenously as well as a merged image of the two cameras, so three images total.  In post production I can take these series and make individual avi files for each one.  What I would like to do is to create one avi showing any combination of the three(side-by-side).  I've tried to combine the images into an array but it gives me an output error. When I try to use picture controls to create flattened pixmaps the picture looks right but I'm not quite sure how to convert the picture data into image data that the Create AVI.vi SubVI can use, anyone have any suggestions?
0 Kudos
Message 1 of 4
(3,532 Views)
I would use the IMAQ Image to Image.vi from the Vision Development Module to extract each frame into a larger frame so that your large frame has all the images on it - and then make an AVI of those images. You can use the IMAQ Set Image Size.vi to create an image the size you need and then use the offset input to the IMAQ Image to Image.vi to place each image in the propper place.
0 Kudos
Message 2 of 4
(3,523 Views)
Using that method works great for images of the same type (RGB to RGB)  however when I try and combine two different image types (16-bit and RGB or  8-bit and RGB) I get an error.  Also when I try and recast my 16-bit data to 8-bit or RGB, I lose alot of data and the picture does not look right.  I would like to keep this part of my code fairly simple are there any other suggestions you have.
0 Kudos
Message 3 of 4
(3,449 Views)

You probably are not seeing correct images because of all of the Image type conversions, I created an example VI in LabVIEW 7.1 with a few of the Vision Development Module functions. The zip file also has a sample signed 16 bit image (unsigned 16 bit images are not currently supported) and a RGB image.

Hopefully this helps out!

0 Kudos
Message 4 of 4
(3,432 Views)