3つの画像を隣り合わせに配置したい

A = imread('~.bmp')
C = imfuse(A,A,'montage');
image(C)
上のコマンドで二つの画像を隣り合わせで一つのFigureにすることはできたのですが、3つ隣り合わせにする場合はどうすれば良いでしょうか。

回答(1 个)

cat で連結するのはどうですか?
I = imread('chacha_sq.jpeg');
I = cat(2,I,I,I);
imshow(I)

2 个评论

R2018bから使えるimtileでも簡単にできますね。
img1 = imread('peppers.png');
img2 = rgb2gray(img1);
img3 = imgaussfilt(img1);
out = imtile({img1, img2, img3}, 'GridSize', [1 3]);
imshow(out)
Hernia Baby
Hernia Baby 2022-6-8
データ型やサイズが異なるときも加味すると imtile がベストですね

请先登录,再进行评论。

产品

版本

R2021a

Community Treasure Hunt

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

Start Hunting!