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