How can I place 4 jpeg images randomly into one 2x2 single larger image?
조회 수: 2 (최근 30일)
이전 댓글 표시
I can create an image of all 4 of the jpeg images so it makes a 2x2 picture, but i am not sure how to randomize it.
댓글 수: 2
Rik
2018년 7월 22일
What code did you use? It is easier to adapt your existing code than to write new code you'll have to adapt.
채택된 답변
Walter Roberson
2018년 7월 22일
parts = {A, B_resized, C_resized, D_resized};
pic = cell2mat( reshape( parts(randperm(4)), 2, 2 ) );
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!