10-20-2011 05:52 AM
hi
how arrange images in grid form like 2x2 matrix form.
any solution please.
Regards,
Hari
Solved! Go to Solution.
10-20-2011 09:52 AM
10-20-2011 11:45 PM
hi Thoric
No i didnt tried.
please give one example how to do it.
Regards,
Hari
10-21-2011 03:10 PM
10-21-2011 03:20 PM
@Thoric wrote:
I'm not at a PC to create a VI, so the following description is the best I can do for now:
Create an array control, place a Picture indicator inside it, right click the array to add a second dimension, resize the array to your requirements.
To populate the array, load all your images in a for loop (for example) to create an array of pictures, reshape the array to 2-dimensional and wire it to your picture array.
That's off the top of my head, so it may need tweaking, but if should get you started.
Following instructions: (I'm at a PC)
10-21-2011 03:29 PM - edited 10-21-2011 03:31 PM
10-21-2011 03:45 PM
10-22-2011 02:16 AM
Hi Thoric
I tried according to your guidence.
final image was updated in all windows.
tell me where is the problem.
Regards,
Hari
10-22-2011 03:14 AM
Hi Thoric
I tried according to your guidence.
final image was updated in all windows.
tell me where is the problem.
Regards,
Hari
10-22-2011 05:56 AM
Thinnker,
I'm not sure I understand what you're trying to do, but I altered what I could of your code to make it work without changing the structure so much that it become unrecognisable to you.
I've replaced your IMAQ control with a 2D Picture control because I don't have IMAQ installed. This VI works as expected and loads your folder of JPGs into the picture array.
If you work with IMAQ, note that your images will all be loaded into the same IMAQ reference because you are creating only one of them (called untitled), therefore with each image you load, you are overriding the previous one. You will need to move the IMAQ Create function into the For Loop and generate a new reference for each image you wish to load (each will require a unique string for its name).