how to store cells values of multiple images into a single file ?.

2 ビュー (過去 30 日間)
Farman Shah
Farman Shah 2018 年 8 月 9 日
コメント済み: Walter Roberson 2020 年 2 月 7 日
I stored the 10 strongest points of Surf features into cells i.e.every cell contains 10 points of surf features strongest points and i have 40 images so total 40 cells contains 400 points, what i want to do is to get all the points for all the images (400 points for 10 images) into a single file in rows to further label it for classification. any help will be appreciated..thanks
here is the description link where what i did for storing the values for all 40 images into cells.
https://www.mathworks.com/matlabcentral/answers/414185-how-can-i-store-10-strongest-points-of-surf-features-of-multiple-images-in-one-variable-using-matlab
  1 件のコメント
Paul Siefert
Paul Siefert 2018 年 8 月 10 日
What do you mean with "single file in rows"? Do you mean you want an array of 400 x 1?

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

回答 (2 件)

Fangjun Jiang
Fangjun Jiang 2018 年 8 月 10 日
cell2mat() reshape()

fadi ssuhimat
fadi ssuhimat 2020 年 2 月 7 日
Can you help me I have same issue?
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 2 月 7 日
Load all of the data into a cell array, one entry per file Then
data_array = cell2mat( cellfun(@(C) reshape(C,1,[]), TheCellArray(:), 'uniform', 0) );
Now the entire content of each file will be put into a single row, and the rows (files) will be put together into a 2D matrix.
This code as-written will fail if the files are not all the same size. If that is a problem then you would need to define how you want to store the data in that situation.

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by