title: Python OpenCV SVM implementation
body: <p>So I have a matrix with my sample images (all turned into vectors) which was run trough PCA/LDA, and a vector which denotes the class each images belongs to. Now I want to use the OpenCV SVM class to train my SVM (I am using Python, OpenCV 2.3.1). But I have a problem with defining the parameters:</p>
  
  <pre><code>test = cv2.SVM()
  test.train(trainData, responses, ????)
  </code></pre>
  
  <p>I am stuck on how to define the type of SVM (linear, etc.) and other stuff. In C++ you define it by stating for example: svm_type=CvSVM::C_SVC...Python doesn't have that. C++ also has a special class to store these parameters -> CvSVMParams. Can someone give me an example of this in Python? Like defining the SVM type, gamma, etc.</p>
  
  <p>The 2.3.1 docs says it like this:</p>
  
  <pre><code>Python: cv2.SVM.train(trainData, responses[, varIdx[, sampleIdx[, params]]]) → retval
  </code></pre>
  
  <p>What are varIdx and sampleIdx, and how to define the params?</p>