getting image from OpenFileDialog and convert it to ::Mat
<p>i want to get image path from OpenFileDialog and read read this image with cv::imread ,i use this code : </p>

<pre><code>cv::Mat img = cv::imread(openFileDialog1-&gt;FileName)
</code></pre>

<p>but i get this error :</p>

<blockquote>
  <p>no suitable constructor exists to convert from "System::String ^" to "cv::String"  </p>
</blockquote>

<p>please help me :(</p>