title: Displaying webcam feed in cv::Mat format in a picturebox
body: <p>I am using OpenCV to take a live stream from a webcam and after detecting faces.  I am resizing them so that only my face is displayed.</p>
  
  <p>But the problem is that I am doing all this in <strong>C++ Windows Forms</strong> and I want it to be displayed in a <code>PictureBox</code> instead of getting the display in OpenCV <code>imshow()</code> window.</p>
  
  <p>I'm using <code>cv::Mat</code> so I am having a great deal of problem with displaying in the picture box.</p>
  
  <p>I have tried converting it into <code>IplImage</code> but that didn't work either.
  Also, I have tried Google but I couldn't get a working solution. I've been trying this for 3 days. </p>
  
  <p>Here's my code for displaying:</p>
  
  <pre><code>                 face = getFace(frame);
                   cv::imshow("window",face);
  </code></pre>
  
  <p>where <code>frame</code> and <code>face</code> are <code>cv::Mat</code></p>