フィルターのクリア

show images contained in a cell array in a single window with montage?

2 ビュー (過去 30 日間)
federica pasquali
federica pasquali 2018 年 10 月 15 日
コメント済み: federica pasquali 2018 年 10 月 16 日
Hi everybody! I've a cell array containing the images I want to present in a single graphic window through montage function , here the code so far but doesn't work correctly :
%a from previous instruction is : 1 x 14 cell containing the images (uint8)
%contatore is the number of images i've generated
for i = 1 : contatore
montage(a{i},'Size',[2 7])
end
How can I make it work? Thanks Another point : there is a way to make the size of montage adjust itself instead, depending on the images it has instead of writing :'Size',[2 7] ? Thanks again
  2 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 10 月 15 日
Can you share your array image?
federica pasquali
federica pasquali 2018 年 10 月 16 日
a =
1×14 cell array
Columns 1 through 5
{246×272×3 uint8} {246×272×3 uint8} {246×272×3 uint8} {246×272×3 uint8} {246×272×3 uint8}
Columns 6 through 10
{246×272×3 uint8} {251×280×3 uint8} {240×264×3 uint8} {232×248×3 uint8} {232×264×3 uint8}
Columns 11 through 14
{232×264×3 uint8} {168×200×3 uint8} {238×272×3 uint8} {232×256×3 uint8}
this is my cell array and i want to do a montage of all the image contained in the array a i've tried with this for loop but doesn't work :
for i = 1 : 15
figure('Name','1A')
montage(a{i:15) ,'Size',[2 7])
end
because everytime it opens a new figure for every image and i want only a figure with all the images

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

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 10 月 15 日
編集済み: KALYAN ACHARJYA 2018 年 10 月 15 日
Here im_array is the cell array
montage(im_array)
  5 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 10 月 16 日
Can you share your array image?
federica pasquali
federica pasquali 2018 年 10 月 16 日
a =
1×14 cell array
Columns 1 through 5
{246×272×3 uint8} {246×272×3 uint8} {246×272×3 uint8} {246×272×3 uint8} {246×272×3 uint8}
Columns 6 through 10
{246×272×3 uint8} {251×280×3 uint8} {240×264×3 uint8} {232×248×3 uint8} {232×264×3 uint8}
Columns 11 through 14
{232×264×3 uint8} {168×200×3 uint8} {238×272×3 uint8} {232×256×3 uint8}

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by