如何实现图像预处理使用imageDatastore?

4次浏览(过去30天)
Nisreen Sulayman
Nisreen Sulayman 2021年9月15日
我想在实现深度学习之前做图像预处理,MATLAB不接受“transform imageDatastor”:
imd: imageDatastore
imds_T = transform(imds,@(x) medfilt2(x));% imds_T: imageDatastor转换
我尝试应用“splitachlabel”,我得到以下错误:
未定义的函数'splitEachLabel'的输入参数类型为'matlab.io.datastore.TransformedDatastore'。
问题是什么?
如何实现图像预处理使用imageDatastore?
1评论
默罕默德·萨米
默罕默德·萨米 2021年9月15日
在应用转换之前,也许您可以先使用splitEachLabel来分离您的训练数据集和测试数据集。

登录评论。

答案(0)

社区寻宝

在MATLAB Central中找到宝藏,并发现社区可以如何帮助你!

开始狩猎!

翻译的