title: Convert a byte [] to Image<Bgr, Byte>
body: <p>I am trying to convert a byte array to an image. There are many references on the web to do so such as <a href="https://stackoverflow.com/questions/16241004/how-to-convert-bitmap-to-imagebgr-byte">this SO post</a> and <a href="http://www.emgu.com/forum/viewtopic.php?t=169" rel="nofollow noreferrer">this emgu forum</a> and <a href="http://www.emgu.com/wiki/index.php/Working_with_Images#Creating_image_from_Bitmap" rel="nofollow noreferrer">emgu official docs</a>. </p>
  
  <p>However I am getting an error when I implement the solutions according to the SO post and the Emgu docs that reads</p>
  
  <p><em>Cannot convert from System.Drawing.Bitmap to <code>byte[*,*,*,*]</code></em></p>
  
  <pre><code>public Image&lt;Bgr, Byte&gt; CreateImageFromBytesArray(byte[] bytes)
  {
      using (var ms = new MemoryStream(bytes))
      {
          Bitmap bmp = new Bitmap(ms);
          Image&lt;Bgr, Byte&gt; img = new Image&lt;Bgr, Byte&gt;(bmp); //EXCEPTION HERE
          return img;
      }
  }
  </code></pre>
  
  <p>Any suggestions on how to make this work?</p>