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 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!