I'm new to opencv 3.0. I cannot figure out how to use a SVM object in a custom class. Can someone give me a toy example how to do it?
Here is an example for opencv 2.4.x:
// Class Definition
class myClass{
public:
myClass();
cv::Mat myMat;
private:
CvSVM svm;
};
// Constructor
myClass::myClass()
{
CaffeMobile::svm.load("Some/hard/coded/path/to/a/SVM/File");
}