title: How to convert a Mat variable type in an IplImage variable type in OpenCV 2.0?
body: <p>I am trying to rotate an image in OpenCV.</p>
  
  <p>I've used this code that I found here on Stack Overflow:</p>
  
  <pre><code>Mat source(img);
  Point2f src_center(source.cols/2.0, source.rows/2.0);
  Mat rot_mat = getRotationMatrix2D(src_center, 40.0, 1.0);
  Mat dst;
  warpAffine(source, dst, rot_mat, source.size());
  </code></pre>
  
  <p>Once I have my <code>dst</code> <code>Mat</code> variable type filled up I would like to put it back to an <code>IplImage</code> variable type, any idea about how to do this?</p>