フィルターのクリア

How to save image to cell array ?

1 回表示 (過去 30 日間)
tedy
tedy 2013 年 4 月 16 日
Hello,
i have images totally 28 images, it's all taken from imread(a1.bmp,a2.bmp....), each sized 50x50x3. i wanna save it into cell array. so, the final result is a cell array with 7 col and 4 row. i code like this.
letter=[a1 b1 c1 d1 e1 f1 g1;
a2 b2 c2 d2 e2 f2 g2;
a3 b3 c3 d3 e3 f3 g3;
a4 b4 c4 d4 e4 f4 g4];
templates=mat2cell(letter);
save ('templates','templates');
it doesn't work, please help me.Thanks in advance
  1 件のコメント
Walter Roberson
Walter Roberson 2013 年 4 月 16 日
What variable names are you storing the imread() results into?

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

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 4 月 16 日
templates = {a1 b1 c1 d1 e1 f1 g1;
a2 b2 c2 d2 e2 f2 g2;
a3 b3 c3 d3 e3 f3 g3;
a4 b4 c4 d4 e4 f4 g4}; %notice {} not []

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by