how to read images from dir and combine images with different size in one image
1 回表示 (過去 30 日間)
古いコメントを表示
how to combine multi images in one image with different size and position beside each other in 3 3 matrix , just like a image in link :
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
0 件のコメント
回答 (1 件)
Image Analyst
2016 年 11 月 25 日
See my demo to paste a rectangular image into a larger canvass.
6 件のコメント
Image Analyst
2016 年 12 月 3 日
First do this outside the loop
[rowsA, columnsA, numColorsA] = size(A)
Then, in the loop, instead of this:
B = imresize(B,0.5);
do this to resize B to be the same size as A
B = imresize(B, [rowsA, columnsA]); % No need to pass in numColorsA.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!