我需要将 Emgu CV 中的 Mat 转换为图像。尝试将 Mat 转换为图像会产生异常:Cannot implicitly convert type 'Emgu.CV.Mat' to 'Emgu.CV.Image
Image<Bgr, Byte> imgeOrigenal;
Capture capWebcam = null;
imgeOrigenal = capWebcam.QueryFrame();//error line
如何将 Mat 转换为图像?
正确答案是@David_D 在该问题下发送的第一条评论。
Image<Bgr, Byte> imgeOrigenal = capWebcam.QueryFrame().ToImage<Bgr, Byte>();
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)