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

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

Risposte (1)

Hernia Baby
Hernia Baby il 7 Giu 2022

1 voto

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

2 Commenti

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 il 8 Giu 2022
データ型やサイズが異なるときも加味すると imtile がベストですね

Accedi per commentare.

Prodotti

Release

R2021a

Richiesto:

il 7 Giu 2022

Commentato:

il 8 Giu 2022

Community Treasure Hunt

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

Start Hunting!