0
我正在编写一个使用网络摄像头捕获图像的C#程序。 对于输出图像的方框,选择imagebox
(在EmguCV
库中)。 我愿意从输出图像中获取像素信息。 根据我的发现,我需要将imagebox
中的图像转换为位图,然后我可以在c#中使用picturebox
执行分析 (http://www.emgu.com/wiki/index.php/Working_with_Images#Using_ImageBox) 因此,需要Tobitmap()方法。任何人都可以给我想法如何将图像盒图像转换为位图的基础上的功能? 非常感谢Imagebox转换为位图
private void ProcessFrame(object sender, EventArgs arg)
{
ImageFrame = _capture.QueryFrame();
detectimageBox.Image = ImageFrame;
}
这不是铸造 - 创建一个新的位图实例。 – Igor 2013-03-14 14:07:47
不知道我为什么使用这个术语。我觉得很累。编辑后。 – 2013-03-14 14:09:13
感谢让我试试:) – user1994617 2013-03-14 14:11:00