Why do I have this error when using indexImages ??
古いコメントを表示
When I tried ti run this code which I copied from MATLAB documentation:
setDir = fullfile(toolboxdir('vision'),'visiondata','imageSets','cups');
imds = imageDatastore(setDir);
imageIndex = indexImages(imds);
I got this error
Error using indexImages
Expected input number 1, imgSet, to be one of these types:
imageSet
Instead its type was matlab.io.datastore.ImageDatastore.
Error in indexImages>parseInputs (line 125)
validateattributes(imgSet, {'imageSet'},{'scalar'}, mfilename, 'imgSet',1);
Error in indexImages (line 99)
[bag, params] = parseInputs(imgSet, varargin{:});
Why? could anyone please clarify? I'm pretty novice in MATLAB, so I would be grateful if you give me very clear answer. Thanks.
2 件のコメント
Walter Roberson
2016 年 11 月 25 日
Odd.
Which MATLAB release are you using?
amal fahad
2016 年 11 月 26 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Feature Detection and Extraction についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!