필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
Alejandro Estudillo
Alejandro Estudillo 2018년 6월 23일
댓글: Alejandro Estudillo 2018년 6월 25일
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
Alejandro Estudillo 2018년 6월 25일
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