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