I am using openCV but I can't find anything in the documentation about what the parameter returnDFVal means in the predict method for support vector machines. Does anybody else know?
A:
I haven't looked at the documentation, and I haven't used SVMs from OpenCV (but I have used LIBSVM). My guess is that it means: return decision function value. If you set it to true, you get the distance to the margin (and you get the class by looking at the sign of that value) and if it is false it returns +1 or -1 depending on the class.
carlosdc
2010-08-24 18:34:05
I believe OpenCV uses libsvm. Wow, would never have guessed the meaning of that parameter. Thank you for your help.
John Robertson
2010-08-24 19:25:05