Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 转换类型';Emgu.CV.Mat';至';Emgu.CV.Image<;Emgu.CV.Structure.Bgr,字节>';_C#_Emgucv - Fatal编程技术网

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();