Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are no more SVM::Params params in OpenCV 3.0.0. The structure of the ml module is now different (look here). You will need to use the new setters and getters to configure your parameters

There are no more SVM::Params params in OpenCV 3.0.0. The structure of the ml module is now different (look here). You will need to use the new setters and getters to configure your parametersparameters.

For example:

//In OpenCV 2.4.x
SVM::Params params;
params.C = 0.01;

//In OpenCV 3.0.0
SVM my_svm = SVM::create();
my_svm->setC(0.01);

There are no more SVM::Params in OpenCV 3.0.0. The structure of the ml module is now different (look here). You will need to use the new setters and getters to configure your parameters.

For example:

//In OpenCV 2.4.x
SVM::Params params;
params.C = 0.01;

//In OpenCV 3.0.0
SVM Ptr<SVM> my_svm = SVM::create();
my_svm->setC(0.01);