我在将 System.Drawing.Image 转换为 Emgu.CV.Image 时遇到问题。我可以在表单应用程序中加载我的图像
string im_name = str[index];
Emgu.CV.Image<Bgr, Byte> img = new Image<Bgr, byte>(im_name);
但是这段代码给了我无效参数的错误
System.Drawing.Image img_btmap = System.Drawing.Image.FromFile( im_name);
Emgu.CV.Image<Bgr, Byte> img1 = new Image<Bgr, byte>(img_btmap);
有人知道为什么吗???问候