解决方案 »
- asp.net网页设置为1100px,怎么不能居中啊
- 请教:WinForm嵌入了Windows Media Player,但打不开。
- 用splitContainer把form分成了panel1和panel2,怎样在panel2打开form?
- 谁给份C# 进程注入的代码 谢谢。
- 生成的静态HTML页面能不能像DataGrid一样分页??
- 急!关于发送传真是否成功的问题!!
- treeview 问题:
- 请问那位任兄有《C语言编程格式约定>>,请给我一份,小弟不胜感激!
- C# SQL Server 项目视频教程哪里有
- C#连续纸的问题,WIN10+EPSON730KII+.NET462
- 如何在.net中模拟post方式提交json数据
- dataset修改数据库时报错:当传递具有新行的DataRow集合时,更新要求有效的 insertCommand。
{
Capture _capture;
public Form1()
{
InitializeComponent();
_capture = new Capture();
_capture.ImageGrabbed += _capture_ImageGrabbed;
_capture.Start();
} void _capture_ImageGrabbed(object sender, EventArgs e)
{
var frame = _capture.RetrieveBgrFrame();
pic.Image = frame.Bitmap;
}
}
private void btnBlend_Click(object sender, EventArgs e)
{
// Step 4: Project and blend the second image using the homography
Blend blend = new Blend(homography, img1);
pictureBox.Image = blend.Apply(img2);
}
现在我已经得出了homography,然后只要不断的while循环
Blend blend = new Blend(homography, img1);
pictureBox.Image = blend.Apply(img2);
这两句就行了,img1为视频一的帧数据,img2为视频二的帧数据,然后我怎么一帧接一帧的取出img1跟img2的数据,然后在pictureBOX里播放呢~我已经试过了,第一帧数据是可以在pictureBox里拼接显示的