title: OpenCV: wrap image to cylindrical coordinates
body: <p>I'm trying to create a panoramic image using opencv library. Based on <a href="http://www.ddewey.net/pics/vpt/technical/" rel="nofollow">this</a>, I need to warp the image to cylindrical coordinates. I got the formula to convert 3D cartesian (X,Y,Z) to cylindrical coordinate(θ,v) from Panoramic Image Mosaic paper , which is:</p>
  
  <pre><code>  θ = tan−1 (X/Z)
  
    v = Y/ √ (X^2 + Z^2)
  </code></pre>
  
  <p>I have read an opencv mailing list thread about cylindrical image warping, but based on the paper, I don't think I need to use camera calibration matrix. And, in the website, the problem has not been solved. Th question is, how can we convert an opencv IplImage to cylindrical coordinate and display them correctly?</p>
  
  <p>Thanks in advance. </p>