【发布时间】:2016-11-20 19:05:47
【问题描述】:
在 Matlab 中做这个例子Image Category Classification 我在尝试使用此命令获取 SURF 功能词汇时发现错误
bag = bagOfFeatures(trainingSet);
错误如下
Error using bagOfFeatures/parseInputs (line 1023)
The value of 'imgSets' is invalid. Expected imgSets to be one of these types:
imageSet
Instead its type was matlab.io.datastore.ImageDatastore.
我正在使用 ImageDatastore 输入而不是 imgSets,但我正在关注 Mathworks 示例。任何人都可以解释为什么会发生这种情况以及如何将 trainingSet 转换为 imgSets 类型?
【问题讨论】:
-
嗨,我遇到了同样的问题。你找到解决办法了吗?