Help with extracting images from a holder and montaging

2 ビュー (過去 30 日間)
Jason
Jason 2021 年 2 月 12 日
回答済み: Madhav Thakker 2021 年 2 月 14 日
Hello, I have collected a set of images (10) using the image aquisitions tool box and they ar eheld in a variable called frame.
frame1=frame(:,:,:,1);
frame2=frame(:,:,:,2);
..
frame10=frame(:,:,:,10);
I would like to concatenate them and then reshap so I have a montage of 2 rows and 5 columns. I tried this
multi=[];
for i=1:10
multi=[multi,frame(:,:,:,i)];
end
size(multi)
f1=figure
IM2=reshape(multi,2,[]); %2 rows but automatic columns
size(IM2)
imagesc(IM2)
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 2 月 12 日
Use montage() on the frame() ?

サインインしてコメントする。

回答 (1 件)

Madhav Thakker
Madhav Thakker 2021 年 2 月 14 日
Hi Jason,
You can use montage to display multiple images as rectangular montage.
Hope this helps.

カテゴリ

Help Center および File ExchangeDisplay Image についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by