How to convert an image into a matrix in opencv : <p>As it is said in the title, i want to convert an image into a matrix to be able to do some calculation i have used this declaration but it show me an error :  no matching function for call to c::Mat::Mat(IplImage*&amp;)</p>

<pre><code>IplImage* image1 = cvLoadImage("C://images//PolarImage300915163358.bmp", 1);
Mat mtx(image1); // convert IplImage* -&gt; Mat
</code></pre>

<p>is there something wrong with this declaration </p>
