how to label features extracted from image using extractFeatures() and divide them in testing and training sets?
显示 更早的评论
if I use detectSURFFeatures() Then extractFeatures() for 47 images Then I need to split those features extracted from 47 images into training n testing sets also label them +1/-1 for svm how can I do it using matlab.
2 个评论
chetna kaushal
2019-8-2
can you help me in this too. how you resolved it
Fadi Alsuhimat
2020-6-4
can you help me in this too, how you solved it?
回答(2 个)
Image Analyst
2015-10-24
0 个投票
If you have the Statistics and Machine Learning toolbox, you can use randsample()
KJVKU999
2015-10-29
0 个投票
How many surf point you are using? Are you using all available points? You can use Classification Learner application available with statistics and machine learning toolbox.
Save your features in table format and load that table from the application. While making it in table format, also include one column named 'Label' wherein you can give class name or number.
Toolbox will take care of the training and testing once you specify validation method.
类别
在 帮助中心 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!