This example demonstrates how to stitch an arbitrary number of images into a big image.
You can use LabVIEW and the NI Vision Development Module to stitch an arbitrary number of images together into one image. There is no predefined VI to do this, but it is not too complicated.
I've have created a VI that demonstrates how to do this. I have made it general so that you can stitch as many images together as you want. Basically, you look at the resolution of each image in the direction that you want to stitch, and sum them. For example, if I want to stitch two images together in the horizontal direction, I should add their X resolutions. You can get this information using the IMAQGetImageSize VI.
Then you should create a destination image, and set its size to the dimensions that you calculated. Ideally, you should have two images of same Y dimension if you are stitching horizontally (same X dimension if you are stitching vertically). You can use the IMAQ SetImageSize VI to preset the image to be the size of the stitched image. Then, you can use IMAQ ImagetoImage to put the image data from each of the original images into the desination image.
LabVIEW Base Development System 2012 (or compatible)
NI Vision Development Module 2012 (or compatible)
If running in a Real-Time context, you will need the LabVIEW Real-Time Module 2012 (or compatible)
No hardware is necessary to use this example VI
Steps to Implement or Execute Code
Download and open the attached ZIP-file
Open and run the VI
Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**