title: How to mix OpenCV 1.0 and OpenCV 2.0
body: <p>I want to do a polar transform. But in OpenCV 2.0 there doesn't appear to be a C++ version of the cvLogPolar function. How do I use it with cv::Mat?</p>
  
  <p>Error:
  <code>'cvLogPolar' : cannot convert parameter 1 from 'cv::Mat' to 'const CvArr *'</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code>VideoCapture cap(1);
  try {
      if(!cap.isOpened()) {
          throw "Could not open capture device";
      }
  } catch(char* e) {
      cerr &lt;&lt; "Error: " &lt;&lt; e &lt;&lt; endl;
  }
  
  for(;;) {
      Mat frame;
      cap &gt;&gt; frame;
      cvLogPolar(frame, frame, Point(frame.size().width/2, frame.size().height/2),
          1.0f, CV_INTER_LINEAR|CV_WARP_INVERSE_MAP);
      imshow("Preview", frame);
      if(waitKey(30) &gt;= 0) break;
  }
  </code></pre>
  
  <p>Tear it apart, I need to learn something anyway.</p>