【发布时间】:2018-09-21 18:42:43
【问题描述】:
如何将表单中的图像转换为 emguCV 图像?
Image<Bgr, byte> img = new Bitmap(pictureBox1.Image); // error
【问题讨论】:
如何将表单中的图像转换为 emguCV 图像?
Image<Bgr, byte> img = new Bitmap(pictureBox1.Image); // error
【问题讨论】:
您可以使用Image 类的constructor:
Image<Bgr, byte> img = new Image<Bgr, byte>(new Bitmap(pictureBox1.Image));
【讨论】: