我尝试从EmguCV的位图转换为Image(ImageBox),但它向我展示了无法this.captureImageBox.Image = val;
使用EmguCV V3将类型'System.Drawing.Bitmap'隐式转换为'Emgu.CV.IImage'的问题
void SetPic(Bitmap val)
{
if (val != null)
{
this.captureImageBox.Image = val;
}
}
严重性代码说明项目文件行抑制状态错误CS0029无法将类型'System.Drawing.Bitmap'隐式转换为'Emgu.CV.IImage'
该构造函数接受一个位图。
this.captureImageBox.Image = new Image<Bgr, Byte>(val);
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句