06-04-2019 07:10 AM
i tried to convert images to panorama without overlap from array.In panorama.vi , i have attempted it. But I don't know how to automatically do it.
In join images.vi, I added for loop to automate it. But I cannot automate offset for X and Y axis for draw patterened pixmap.
06-04-2019 08:27 AM
Not duplicate per se, but you might want to mention this post, as it is related.
So there you wanted the images in a 2D array, now you want to stitch them together?
06-04-2019 08:43 AM
OK, so I left out a few steps, but after marking my suggestion of how to use ImagetoImage, you abandoned the IMAQ functions and returned to the Picture functions!
One step I overlooked is that your first loop (creating the sub-images) doesn't process all the Images, just a row. Better to process them all (with nested For Loops, create a single Stitched Image, then take the 2D array of sub-Images and (using the algorithm I suggested) stitch the 2D array of sub-Images together to get this:
To create this, I started with your original IMAQ code and created two nested For Loops, that created the 2D array of sub-Images, along with a 2D array of X Resolutions and a 1D Array of Y Resolutions, then created a single Stitched Image whose size was set by summing one row of X Resolutions and summing Y Resolution, then a second nested For Loops that placed each of the sub-Images into the single Stitched Image using the IMAQ logic I posted earlier (and that you marked as a Solution).
Let me know if you want me to post my revised code, or whether you want to "learn" by modifying your own code as I've outlined above. [It helps to know that there really is a working solution, as evidenced by the above image ...].
Bob Schor
06-04-2019 10:06 AM
Can you post the labview code.
I tried a lot with IMAQ functions and fed up of that and after that only I give a try on picture functions.
06-04-2019 11:31 AM
I now want images as stitched.
This is my second task.
My first task was to arrange images in an array.
06-04-2019 11:34 AM
Here you go. I'm attaching it as a LabVIEW Snippet to allow anyone with Vision to replicate it.
Revised Stitch
Bob Schor
06-04-2019 12:46 PM
Which function you have used as input to summer in case of X resolution?
Is it array subset function.
06-04-2019 03:03 PM - edited 06-04-2019 03:04 PM
SSG0484, as you do have the vision toolkit, you don't have to bother with the picture toolkit method.
Kudos to Bob for
https://forums.ni.com/t5/LabVIEW/Stacking-images-in-array/m-p/3933681#M1117940
in response to:
https://forums.ni.com/t5/LabVIEW/Stacking-images-in-array/m-p/3933537#M1117900
indeed, it is significantly harder to stitch those indvidual images together,
than using the reshape-array.vi to spawn an 2d array of those individual images
attached as LabView 2010
does there exists a more elegant solution?
06-04-2019 03:48 PM - edited 06-04-2019 03:49 PM
@SSG0484 wrote:
Which function you have used as input to summer in case of X resolution?
Is it array subset function.
No. It is possibly the most commonly-used Array function (you might not recognize it because it changes its appearance slightly if you wire a 2D Array into it ...). Create a 2D Array and try wiring it into some "common" Array functions to figure it out for yourself ... (Hint -- look at the output, then think).
Bob Schor
06-04-2019 11:33 PM