Based on the documentation of libsvm, prediction results are either predicted class labels or probability estimates of classes. I want to get prediction results as signed distances to the margin.
Which is implemented in OpenCV, documentation is as follows:
C++: float CvSVM::predict(const Mat& sample, bool returnDFVal=false )
const returnDFVal – Specifies a type of the return value. If true and the problem is 2-class classification then the method returns the decision function value that is signed distance to the margin, else the function returns a class label (classification) or estimated function value (regression).
Full documentation can be found here.
How can I use svm-predict.exe with this functionality, or can I use it?