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

15 views (last 30 days)
大輝 徳永
大輝 徳永 on 7 Jun 2022
Commented: Hernia Baby on 8 Jun 2022
A = imread('~.bmp')
C = imfuse(A,A,'montage');
image(C)
上のコマンドで二つの画像を隣り合わせで一つのFigureにすることはできたのですが、3つ隣り合わせにする場合はどうすれば良いでしょうか。

Answers (1)

Hernia Baby
Hernia Baby on 7 Jun 2022
cat で連結するのはどうですか?
I = imread('chacha_sq.jpeg');
I = cat(2,I,I,I);
imshow(I)
  2 Comments
Kojiro Saito
Kojiro Saito on 7 Jun 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 on 8 Jun 2022
データ型やサイズが異なるときも加味すると imtile がベストですね

Sign in to comment.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!