title: Get SVM classification score in multiclass classification with OpenCV
body: <p>I'm working on a project where I'm doing multiclass classification with SVM in OpenCV.</p>
  
  <p>My goal is to get the confidence score of the classification as well as the predicted class.
  How can I do that? Right now I'm doing something like</p>
  
  <pre><code>float result = mysvm.predict(sample);
  </code></pre>
  
  <p>Having a fairly high amount of classes I prefer to avoid doing a lot of one-vs-all classifications and then calculate the scores.</p>
  
  <p>Since OpenCV SVM is implemented using LibSVM, I'm quite sure that there is a way to do this, but looking at <a href="http://docs.opencv.org/modules/ml/doc/support_vector_machines.html">http://docs.opencv.org/modules/ml/doc/support_vector_machines.html</a> doesn't really help.</p>
  
  <p>Thanks for any input provided.</p>