title: EmguCV capture error: Cannot implicitly convert type 'Emgu.CV.Mat' to 'Emgu.CV.Image<Emgu.CV.Structure.Bgr,byte>
body: <p>I am using EmguCV with C#, I am facing a problem when I want to grab frames from my web cam, red underline appears on statement:</p>
  
  <pre><code>imgOrg = capturecam.QueryFrame();
  </code></pre>
  
  <blockquote>
    <p>error: Cannot implicitly convert type 'Emgu.CV.Mat' to 'Emgu.CV.Image</p>
  </blockquote>
  
  <p>how can I solve this problem?</p>
  
  <p>my code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  
  using Emgu.CV;
  using Emgu.CV.CvEnum;
  using Emgu.CV.Structure;
  using Emgu.CV.UI;
  
  namespace test2
  {
      public partial class Form1 : Form
      {
          Image&lt;Bgr, Byte&gt; imgOrg; //image type RGB (or Bgr as we say in Open CV)
          private Capture capturecam;
  
          public Form1()
          {
              InitializeComponent();
          }
  
          private void Form1_Load(object sender, EventArgs e)
          {
              try
              {
                  capturecam = new Capture();
              }
              catch (NullReferenceException exception)
              {
                  MessageBox.Show(exception.Message);
                  return;
              }
              Application.Idle += new EventHandler(ProcessFunction);
  
          }
          private void ProcessFunction(object sender, EventArgs arg)
          {
              imgOrg = capturecam.QueryFrame(); // error line
              imageBox1.Image = imgOrg;
          }
      }
  }
  </code></pre>