如何在C#中将Emgu.image转换为图像?

如何在C#中将Emgu.image转换为图像?

问题描述:

我尝试了强制转换,但是没有用...

i tried casting but it doesn''t work...

我可能错了,但是...

图像类肯定具有ToBitmap()函数吗?
I may be wrong, but...

Surely the image class has a ToBitmap() function?


您不能将任意类型转换为另一个任意类型.我从未使用过Emgu,但我假设它具有自己的图像类型,并公开了自己的自定义Image类.最好的选择是在他们的论坛上尝试,看看是否有一种简单的方法可以从其对象中获取位图数据,然后可以将其用于构造适当的.NET图像类型.
You can''t cast an arbitrary type into another arbitrary type. I''ve never used Emgu but I assume it has its own image type and exposes a custom Image class of its own. Your best bet is to try their forums to see if there''s an easy way to get the bitmap data out of their object, which can then be used to construct the appropriate .NET image type.


以前从未听说过Emgu,但是我的好朋友知道如何挖掘诸如 [^ ]可能是吗? 问他 [ ^ ],非常好.
Never heard of Emgu before, but my good friend know how to dig out some info like this [^]may be? Ask him[^], it is very good.