如何将Emgu.Cv.Image <Gray,byte>转换为System.Image

Sis*_*say 5 converter image-processing emgucv c#-4.0

我是Emgu Cv的新手,我想知道是否有人能告诉我如何将Emgu.Cv.Image更改为System.Image?如果需要进一步解释,请告诉我,我会这样做.语言我我用的是C#.

Rog*_*and 5

您可以使用该ToImage()方法获取System.Drawing.Bitmap(这是派生类System.Drawing.Image),所以这样的事情

// create an Emgu image of 400x200 filled with Blue color
Image<Bgr, Byte> img = new Image<Bgr, byte>(400, 200, new Bgr(255, 0, 0));

// copy to a .NET image
System.Drawing.Image pMyImage = img.ToBitmap();
Run Code Online (Sandbox Code Playgroud)

你是这个意思吗?