title: How to convert an SDL1 surface to an opencv Mat
body: <p>I'm trying to create a opencv <code>Mat</code> from an <code>SDL_Surface</code> (SDL 1.3).</p>
  
  <p>I've tried various combinations of parameters but I can't get it work. </p>
  
  <p>That's my code:</p>
  
  <pre><code>SDL_Surface test_surf = SDL_SetVideoMode(WIDTH, HEIGHT, 16, SDL_SWSURFACE);
  Mat testRGB(WIDTH,HEIGHT,CV_8UC3,test_surf-&gt;pixels,test_surf-&gt;pitch);
  </code></pre>