how saved all Images as Vector in Excel file?

2 ビュー (過去 30 日間)
Furat Alobaidy
Furat Alobaidy 2020 年 10 月 31 日
コメント済み: Furat Alobaidy 2020 年 11 月 11 日
Hi i need save more than 128 images into excel file after convert each image into vector ? i did these steps , but how can do for all other images inside the folder pleaase ?
digitDatasetPath = fullfile('C:\...\Resized dataset');
imds = imageDatastore(digitDatasetPath, ...
'IncludeSubfolders',true,'LabelSource','foldernames');
for i=1:128 % totall images in the folder 128 images
img=readimage(imds,i);
ImgVector = img(:);
img3=im2double(img);
ImgVector = img3(:);
xlswrite('iVECTOR.xlsx',ImgVector);
end
image size 28*28
Name Size Bytes Class
img 28x28 784 uint8
the results show me in Excel file just for one image :
ImgVector 784*1 double
i need : ImgVector 784*128 double ????

回答 (1 件)

Anmol Dhiman
Anmol Dhiman 2020 年 11 月 9 日
Hi Furat,
As suggested in the xlswrite, use writematrix to save the images in excel sheet. Create the matrix for all 128 images first and then at once write all to excel sheet.
Regards,
Anmol Dhiman
  1 件のコメント
Furat Alobaidy
Furat Alobaidy 2020 年 11 月 11 日
thanks a lots for your help .

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

カテゴリ

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

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by