卢卡斯Kanade光流程,方向传染媒介 [英] Lucas Kanade Optical Flow, Direction Vector

查看:198
本文介绍了卢卡斯Kanade光流程,方向传染媒介的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究光流,并根据这里的讲义和一些样品在互联网上,我写了这个Python代码

I am working on optical flow, and based on the lecture notes here and some samples on the Internet, I wrote this Python code.

所有代码和示例图像也一样。对于大约4-5个像素的小位移,计算的向量的方向看起来很好,但是向量的大小太小(这就是为什么我在绘制它们之前将u,v乘以3)。

All code and sample images are there as well. For small displacements of around 4-5 pixels, the direction of vector calculated seems to be fine, but the magnitude of the vector is too small (that's why I had to multiply u,v by 3 before plotting them).

这是因为算法的限制,还是代码中的错误?上面分享的演讲注意到,运动需要很小u,v小于1像素,也许这就是为什么。这个限制的原因是什么?

Is this because of the limitation of the algorithm, or error in the code? The lecture note shared above also says that motion needs to be small "u, v are less than 1 pixel", maybe that's why. What is the reason for this limitation?

推荐答案

@belisarius说LK使用一阶近似,因此(u,v)应理想地< 1,如果不是,高阶项占据了行为,你是烤面包。。

@belisarius says "LK uses a first order approximation, and so (u,v) should be ideally << 1, if not, higher order terms dominate the behavior and you are toast. ".

这篇关于卢卡斯Kanade光流程,方向传染媒介的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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