如何在C#中将Emgu.image转换为图像? [英] How to convert Emgu.image into image in C#?

查看:171
本文介绍了如何在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.


这篇关于如何在C#中将Emgu.image转换为图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆