title: How to convert Mat to cvMat in OpenCV 3.0
body: <p>How can I convert an OpenCV <code>Mat</code> object to <code>cvMat</code> object ? </p>
  
  <p>As per this OpenCV interoperability document(<a href="http://docs.opencv.org/doc/tutorials/core/interoperability_with_OpenCV_1/interoperability_with_OpenCV_1.html" rel="nofollow">1</a>), this conversion should be possible. But  on declaring <code>cvMat</code>, compiler gives below error message at line <code>cvMat deprecatedImg</code></p>
  
  <blockquote>
    <p>: error: &lt; expected ‘;’ before ‘deprecatedImg’ >,</p>
  </blockquote>
  
  <p>How to fix this ?</p>