フィルターのクリア

How to store images of different dimension in a single array

5 ビュー (過去 30 日間)
Viswas Guptha
Viswas Guptha 2013 年 7 月 23 日
Hello everyone!! I am stuck with a serious problem here. I need to store images each of different dimension in a same array. How can i do that?? The size of each image keeps changing. I cannot store the images individually because it runs in a loop and images are huge in number. please suggest me a solution or any other alternative method.
Thanks in advance!!

採用された回答

David Sanchez
David Sanchez 2013 年 7 月 23 日
Create a cell array instead, each cell can contain a image of different size:
N = number_of_images;
my_im_cell = cell(N,1);
my_im_cell{k} = image(k); % where k is the image index/number
  1 件のコメント
Viswas Guptha
Viswas Guptha 2013 年 7 月 23 日
Thanks a lot David. That helped.

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

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by