如何将图像转换为emguCV图像

How to convert image into emguCV image

如何将表单中的图像转换为 emguCV 图像?

Image<Bgr, byte> img = new Bitmap(pictureBox1.Image); // error

您可以使用 Image class 的 constructor:

Image<Bgr, byte> img = new Image<Bgr, byte>(new Bitmap(pictureBox1.Image));