Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

it's a bit 'around the corner', but this should work:

vector<float> vf;   
CvMat someMat = Mat(vf);

cv::SVMParams parms;
parms.class_weights = &someMat;