【发布时间】:2013-03-14 22:11:23
【问题描述】:
我正在编写一个使用网络摄像头捕获图像的 C# 程序。
对于输出图像的框,选择imagebox(在EmguCV 库中)。
我愿意从输出图像中获取像素信息。
根据我的发现,我需要将imagebox中的图像转换为位图,然后我可以使用c#中的picturebox进行分析
(http://www.emgu.com/wiki/index.php/Working_with_Images#Using_ImageBox)
因此,需要 Tobitmap() 方法。谁能告诉我如何根据该函数将图像框图像转换为位图?
非常感谢
private void ProcessFrame(object sender, EventArgs arg)
{
ImageFrame = _capture.QueryFrame();
detectimageBox.Image = ImageFrame;
}
【问题讨论】: