![](/img/trans.png)
[英]Reading System.Drawing.Bitmap into OpenCV / Emgu to find contours
[英]convert type 'System.Drawing.Bitmap' to 'Emgu.CV.IImage'
我嘗試將位圖轉換為EmguCV的圖像(ImageBox),但它向我展示了問題:無法使用this.captureImageBox.Image = val;
將類型'System.Drawing.Bitmap'隱式轉換為'Emgu.CV.IImage' this.captureImageBox.Image = val;
我正在使用EmguCV V3
void SetPic(Bitmap val)
{
if (val != null)
{
this.captureImageBox.Image = val;
}
}
嚴重性代碼說明項目文件行抑制狀態錯誤CS0029無法將類型'System.Drawing.Bitmap'隱式轉換為'Emgu.CV.IImage'
ctor接受一個位圖。
this.captureImageBox.Image = new Image<Bgr, Byte>(val);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.