07-29-2009 04:16 PM
I wrote a program which will capture up to 100 images, total of 500MB. I queue each image (12bit 1D array) in an array of queues. I would like to "view" the queues selectively, grab the data (but not destroy each queue), and display this data as a large stitched image.
I've been able to do this by building an array from each queue and manipulating rows/columns until the images are stitched in my pattern. Does this create another 500MB of wasted memory since I'm "copying" the queue data into another array?
Also, is there a simpler method of doing this?
Solved! Go to Solution.
08-05-2009 08:28 AM
Hey dre99gsx,
Iv written an example that seems to be the most scalable option to building a large image at present its restricted to using grayscale(U8) and only builds a 1D array formation.
Is it a requirement that u can access the separate images after they've been stitched.
Hope this helps
Philip
08-06-2009 08:16 AM
Thanks Phillip. That works, although I was looking for a one-stop-shop VI that handles memory allocation as efficiently as possible. I ended up creating something similar to yours with some added features where you can hover over the stitched image and get image "stats", or, double click on the image and the full-res version appears.
My main concern was with alignments since I may want to stitch these images from left to right or top to bottom. There were eight combinations.
Thanks again.
08-06-2009 08:38 AM
Hey dre99gsx
Im glad that helps with regards to different alignments I seems you would have to use an ENUM and case statement
then write the code for each case using transpose array function's
I did find that there is a size limitation to the shift register in the region of 750MB that maybe machine dependent
I have attached code that I modified from the existing VI so that it arranges the images in to a 2D array but it is not very pretty.
When running the VI there must be a square number of images in the folder that you direct it to.
08-06-2009 08:39 AM
04-16-2011 02:45 AM
07-02-2012 08:50 AM
Dear Philip,
The 'Image Stitch' Vi that u have built stitches only non-overlapping images. I would like to ask you is there any way how to upgrade ur code in order to stitch overlapping images.
I am working on a problem where I have 6 (or 10 at most) images from long screws and I want to stitch them together into one image (for inspection purposes). Any tips or hints how to upgrade ur code will be very helpful.
Regards,
Zoran
07-03-2012 01:28 PM
Notice that in the inner while loop there is a place where the multiple arrays are being stitched together (at the Build Array function). Here, you can choose to delete certain sets of pixels and then stitch the images, depending on which pixels you want "overlapped." Does this make sense?