LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stacking images in array.

Solved!
Go to solution

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.

0 Kudos
Message 11 of 20
(1,806 Views)

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?

0 Kudos
Message 12 of 20
(1,804 Views)
Solution
Accepted by topic author SSG0484

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:

Stitched Image.png

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

0 Kudos
Message 13 of 20
(1,806 Views)

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.

0 Kudos
Message 14 of 20
(1,800 Views)

I now want images as stitched.

This is my second task.

My first task was to arrange images in an array.

0 Kudos
Message 15 of 20
(1,785 Views)
Solution
Accepted by topic author SSG0484

Here you go.  I'm attaching it as a LabVIEW Snippet to allow anyone with Vision to replicate it.

Revised StitchRevised Stitch

Bob Schor

Message 16 of 20
(1,784 Views)

Which function you have used as input to summer in case of X resolution?

Is it array subset function.

0 Kudos
Message 17 of 20
(1,773 Views)


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?

 

 

 

 

 

0 Kudos
Message 18 of 20
(1,762 Views)

@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

0 Kudos
Message 19 of 20
(1,757 Views)
Thanks for the support. Best regards, Susan
0 Kudos
Message 20 of 20
(1,741 Views)