How to place image one after the other?

1 visualizzazione (ultimi 30 giorni)
Explorer
Explorer il 5 Feb 2014
Risposto: Jeff E il 5 Feb 2014
Hello! I have 24 images and I would like place them one after the other as shown below. How can I do so using MATLAB?
I have tried to do so by paint brush of windows 8 but its not working without resizing images.

Risposte (1)

Jeff E
Jeff E il 5 Feb 2014
I would try the montage function. The only tricky part there is that you have to pass it an array of filenames, or single array of images.
You can specify the "Size", in terms of number of rows and columns, but you cannot include a border. For that you would have to pad each individual image with whitespace before calling the montage function.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by