2018-06-22 05:58:45 -0600 | received badge | ● Popular Question (source) |
2015-11-13 10:20:14 -0600 | commented question | Confusing SVM training error It compiled and ran! My output was not correct, but that could be an issue with my feature extraction. So I still have some things to try to get it working. Thank you very much. |
2015-11-12 22:45:09 -0600 | commented question | Confusing SVM training error Thanks, I changed the type of classes. I changed |
2015-11-11 22:48:44 -0600 | asked a question | Confusing SVM training error Hello, I am attempting to use BoW and SVM to match a query image with its class in the training image set. Right now I am only attempting to match the query into one of two classes (either it is or is not the correct class). After extrating features and clustering, I computed histograms for each of the images in the training set. I am trying to use svm->train() with a Mat of the histograms, and a Mat of the class number (1 or 0). The problem I have is this stubborn error. I have code to convert the types of both inputs to CV_32F, yet the error persists. I have tried making the conversion in various ways, and declaring the variables in various ways. Nothing I change seems to get rid of the error. Here is my code. histograms and classes are declared as shown below. This is done before filling them with the data. I am using opencv 3.0.0 with Visual Studio 2013. Any help would be greatly appreciated. Thanks |