display N images in all the possible combinations in 3 x 3 matrices

1 次查看(过去 30 天)
Hi all,
Hope someone can help me.
I have a folder with a set of images. All the images have the same size. What I would like to do is to present all the possible combinations of these images in 3 x 3 grids and save each of them as a JPG. I could do this manually, but I have too many images.
Any help would be very appreciated!
  4 个评论
Walter Roberson
Walter Roberson 2018-6-24
9 images arranged on a 3 x 3 grid in all possible permutations would have 362880 results. Are you sure you want to do that?
9 choices for the first position, 8 choices for the second position, 7 choices for the third position, ... 9! = 362880 total possibilities.
Alejandro Estudillo
Hi Walter,
Thanks for your reply. I have been doing some simulations wit the function permn and I think that what I want to do is not too convenient. Ideally, I would like to have all the possible combinations, but I think I am going to use a different approach. Thanks again for your reply!

请先登录,再进行评论。

回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by