title: detecting motion on opencv c++ (moving camera)
body: <p>I'm doing a project for the university and I'm working with OpenCV (that is really awesome).</p>
  
  <p>Now my problem is:<br>
  I have a video (.avi) and I have detected all the information I want to know about the blobs that suddenly appear in the RGB range between red and yellow. After I have realized a matrix that saves all the information about the pixel values, finally I create an image in the scale of red that represents the median pixel values.</p>
  
  <p>The real problem is that the video is not static and the camera moves (not too much but it moves).<br>
  Can I calculate the x and y coordinates of the camera motion so I could shift the value of the matrix?</p>