将类型 'System.Drawing.Bitmap' 转换为 'Emgu.CV.IImage'
convert type 'System.Drawing.Bitmap' to 'Emgu.CV.IImage'
我尝试从位图转换为 EmguCV 的图像 (ImageBox),但它向我展示了问题 Cannot implicitly convert type 'System.Drawing.Bitmap' to 'Emgu.CV.IImage' with this.captureImageBox.Image = val;
我正在使用 EmguCV V3
void SetPic(Bitmap val)
{
if (val != null)
{
this.captureImageBox.Image = val;
}
}
Severity Code Description Project File Line Suppression State
Error CS0029 Cannot implicitly convert type 'System.Drawing.Bitmap' to 'Emgu.CV.IImage'
ctor 接收位图。
this.captureImageBox.Image = new Image<Bgr, Byte>(val);
我尝试从位图转换为 EmguCV 的图像 (ImageBox),但它向我展示了问题 Cannot implicitly convert type 'System.Drawing.Bitmap' to 'Emgu.CV.IImage' with this.captureImageBox.Image = val;
我正在使用 EmguCV V3
void SetPic(Bitmap val)
{
if (val != null)
{
this.captureImageBox.Image = val;
}
}
Severity Code Description Project File Line Suppression State Error CS0029 Cannot implicitly convert type 'System.Drawing.Bitmap' to 'Emgu.CV.IImage'
ctor 接收位图。
this.captureImageBox.Image = new Image<Bgr, Byte>(val);