imageDatastore 圖像數據的數據存儲


imds = imageDatastore(location) 根據 location 指定的圖像數據集合創建一個數據存儲 imds

imds = imageDatastore(location,Name,Value) 使用一個或多個名稱-值對組參數為 imds 指定其他參數和屬性。

 

例:digitDatasetPath = fullfile('F:\dachuang\語料庫', '0-9Pictrues');        %fullfile():  將地址拼接  digitDatasetPath = 'F:\dachuang\語料庫\0-9Pictrues'
       imds = imageDatastore(digitDatasetPath,'IncludeSubfolders',true,'LabelSource','foldernames');

 

 

 

 

 

digitDatasetPath:  數據所在位置

'IncludeSubfolders',true: 是否包含子文件夾:是   (默認為否)

'LabelSource','foldernames' : 標簽來源:子文件夾名 (只有這個或者無標簽)

 

 

官方文檔:https://ww2.mathworks.cn/help/matlab/ref/matlab.io.datastore.imagedatastore.html

參考博客:https://blog.csdn.net/wanzi1122/article/details/80491937

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM