First time here? Check out the FAQ!
answered 2014-10-23 10:00:19 -0600
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;