what are the wrong with this code??
古いコメントを表示
pxds= pixellabeldatastore(pxDir,classes,labelIDs)
Error using pixellabeldatastore
Too many input arguments.
what are the wrong with this code??
4 件のコメント
Geoff Hayes
2021 年 11 月 22 日
@fatima ismail - which version of MATLAB are you using?
Image Analyst
2021 年 11 月 22 日
What does this show
whos pxDir
whos classes
whos labelIDs
fatima ismail
2021 年 11 月 22 日
fatima ismail
2021 年 11 月 22 日
回答 (1 件)
Using a folder of example images that ships with MATLAB, I was able to run your code in R2021a once I updated the labelIDs to be an array of numbers.
classes = ["biling" "car" "pedestrian" "Road" "Sky" "greens" "pole" "Pavement"];
labelIDs=[237 252 0;
169 0 189;
252 0 0;
77 77 77;
0 45 172;
92 155 3;
119 127 3;
255 128 5];
pxDir = fullfile(matlabroot,'toolbox/vision/visiondata/stopSignImages');
pxds= pixelLabelDatastore(pxDir,classes,labelIDs)
カテゴリ
ヘルプ センター および File Exchange で Detection and Tracking についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!