Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SVM labels should be integer in case of a classification (float, if you wanted a regression) , so:

Mat labels(70,1,CV_32SC1);

SVM labels should be integer integer in case of a classification (float, if you wanted a regression) , so: the type of the matrix is relevant here, so make it:

Mat labels(70,1,CV_32SC1);