title: SVM Support Vector Machine regression openCv c++
body: <p>could anybody explain to me how to use SVM with regression in openCv c++?
  Regression should return a value, this value could be a position in the images(coordinates x and y)? or is it a single number? </p>
  
  <p>I have to use it in a video analysis.
  I have three points of which I know the trajectories along the whole video.
  I would like to use the trajectories of two of them to infer the trajectory of the third one.
  So I would like to train a SVM with these trajectories.</p>
  
  <p>I was thinking to organize my training data and labels like that:</p>
  
  <ul>
  <li>training data: position(x,y) in each frame of two of the points</li>
  <li>labels: position(x,y) of the third point in each frame</li>
  </ul>
  
  <p>is this the proper way? or should I organize it like that:</p>
  
  <ul>
  <li>training data: position(x,y) in each frame of the three points to which I add negative example, changing the position of the third point, to simulate a false training set</li>
  <li>labels: 1 if the third point position belong to its trajectory, -1 if it belongs to the false training set</li>
  </ul>