How do I convert Emgu::CV::Mat to OpenCV cv::Mat and vice versa?
<p>I have to use OpenCV in both managed and unmanaged code in C++/CLI.</p>

<p>I'm trying Emgu CV in the managed code to wrap around the OpenCV objects but I'm having trouble doing the conversions.</p>

<p>How do I do something like this:</p>

<pre><code>Emgu::CV::Mat convert = Function_That_Returns_OpenCV_CV_Mat();
</code></pre>

<p>or this:</p>

<pre><code>Function_That_Takes_OpenCV_CV_Mat(Emgu_CV_Mat_variable);
</code></pre>

<p>?</p>