Hello,
I am using svm train method.But segmentation fault is occurred train method's line. My code is :
Mat responseMat(resSize, 1, CV_32FC1, res);
Mat trainingDataMat(trainSize, featureSize, CV_32FC1,trainingData);
CvSVMParams params;
params.svm_type = CvSVM::C_SVC;
params.kernel_type = CvSVM::LINEAR;
params.term_crit = cvTermCriteria(CV_TERMCRIT_ITER, 100, 1e-6);
cout << "svm settings" << endl;
// Train the SVM
CvSVM SVM;
SVM.train(trainingDataMat, responseMat, Mat(), Mat(), params);
cout << "svm train" << endl;