Emgucv 如何在C# 标准控件picturebox上显示 Image类

这个的确是一个很傻瓜的问题,但是却能难住很多的初学者,当然我也曾被它难住了一个多小时。

解决办法如下:

1、在FORM中添加一个Picturebox空间,声明Image类并初始化

2、this.pictureBox1.Image = Image1.ToBitmap();

然后这个问题就这样愉快的被解决掉了有没有,有没有!

Image<TColor, TDepth>.ToBitmap Method

 

Convert this image into Bitmap, the pixel values are copied over to the Bitmap

Namespace:
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 3.0.0.2033 (3.0.0.2033)

 

public Bitmap ToBitmap()

Return Value

Type: Bitmap
This image in Bitmap format, the pixel data are copied over to the Bitmap

For better performance on Image<Gray, Byte> and Image<Bgr, Byte>, consider using the Bitmap property