How to Convert Emgu.Cv.Image<Gray,byte> to System.Image

允我心安 提交于 2019-12-05 10:23:05

You can just use the ToImage() method to get a System.Drawing.Bitmap (which is a derived class of System.Drawing.Image), so something like this

// 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();

Is that what you mean?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!