Getting error using SVM with SURF
问题 Below is my code , which is running fine but after a long processing it show me the run time error // Initialize constant values const int nb_cars = files.size(); const int not_cars = files_no.size(); const int num_img = nb_cars + not_cars; // Get the number of images // Initialize your training set. cv::Mat training_mat(num_img,dictionarySize,CV_32FC1); cv::Mat labels(0,1,CV_32FC1); std::vector<string> all_names; all_names.assign(files.begin(),files.end()); all_names.insert(all_names.end(),