C# 转换类型';Emgu.CV.Mat';至';Emgu.CV.Image<;Emgu.CV.Structure.Bgr,字节>';
我试图使用C# 转换类型';Emgu.CV.Mat';至';Emgu.CV.Image<;Emgu.CV.Structure.Bgr,字节>';,c#,emgucv,C#,Emgucv,我试图使用Image=newimage(Mat.Bitmap)将EmguCV中的Emgu.CV.Mat转换为Emgu.CV.Image和我以前一样,但我发现它在当前版本4.5.1.4349中被删除 目前的替代方案是什么?我找到了另一种方法,它似乎在以前的版本中仍然有效 Image = mat.ToImage<Bgr, Byte>(); Image=mat.ToImage();
Image=newimage(Mat.Bitmap)将EmguCV中的Emgu.CV.Mat
转换为Emgu.CV.Image
代码>和我以前一样,但我发现它在当前版本4.5.1.4349中被删除
目前的替代方案是什么?我找到了另一种方法,它似乎在以前的版本中仍然有效
Image = mat.ToImage<Bgr, Byte>();
Image=mat.ToImage();