I wish to import all the image into a .mat file for machine learning.
4 ビュー (過去 30 日間)
古いコメントを表示
How to solve the error as the existing image file is in jpg type?
Or is there any alternative method to prepare dataset for machine learning 

1 件のコメント
Walter Roberson
2021 年 6 月 11 日
There are a number of different problems with what you have done.
But I recommend that instead of trying to fix it, that you instead use an imageDatastore https://www.mathworks.com/help/matlab/ref/matlab.io.datastore.imagedatastore.html . Many of the Deep Learning algorithms already know how to handle those.
回答 (1 件)
Shadaab Siddiqie
2021 年 6 月 15 日
編集済み: Shadaab Siddiqie
2021 年 8 月 4 日
From my understanding you want to import multiple images into MATLAB. Here is a code which might help you:
% Read in all images from a folder called 'images'
imgFolder = fullfile('images');
imgs = imageDatastore(imgFolder);
numOfImgs = length(imgs.Files);
for ii = 1:numOfImgs
% do operation on the images as your requirement
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!