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

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

Réponses (1)

Hernia Baby
Hernia Baby le 7 Juin 2022

1 vote

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

2 commentaires

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur イメージ dans Centre d'aide et File Exchange

Produits

Version

R2021a

Community Treasure Hunt

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

Start Hunting!