MATLAB Answers

Automated multiple image arrangement using matlab

2 views (last 30 days)
Zeynab Mousavikhamene
Zeynab Mousavikhamene on 16 Apr 2020
Commented: Mohammad Sami on 17 Apr 2020
I need to arrange many images to make slides out of them. They are save with apporpriate names. For example I need to say place image 1 in the upper right corner with a specific size and place iamge two next to image 1 with a determined distance from image 1 in x direction (the same y), put image 3 under image 1 (the same x) and image 4 next to image 3 (the same y) and do it for all of these images. Is it possible to do so in automated way in matlab?
By the way, the images are plots produced by matalb. I have both .fig and .jpeg files.

  3 Comments

Cedric Wannaz
Cedric Wannaz on 16 Apr 2020
What have you tried so far?
Are you able to load these images with IMREAD and determine the size of the outpus/array? Are you able to build a large 2D or 3D array for storing multiple images? If you experiment a little with these, you can use basic indexing to "copy" the images into the large arrar at any position.
Give it a try and extend your question with your attemps.
Zeynab Mousavikhamene
Zeynab Mousavikhamene on 16 Apr 2020
Sorry I should have mentioned that: The images are plots produced by matalb. I have both .fig and .jpeg files.
Because they are alot of plots (+500) and I want to make powerpoint slides out of them, I need to find an automated way of arranging them next to each other.
Mohammad Sami
Mohammad Sami on 17 Apr 2020
To combine multiple images into a single image, you can use imtile function. See the documentation to see if this is what you wanted to do.

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by