File Exchange

image thumbnail

Iterative Pyramidal LK Optical Flow

version 1.2.0.0 (373 KB) by Berkin Bilgic
An implementation of Lucas-Kanade optical flow computation.

13 Downloads

Updated 27 Mar 2009

View Version History

No License

Using pyramid decomposition and iterative refinement, OF is calculated. Includes a demo and a paper that thoroughly explains the methodology.

Cite As

Berkin Bilgic (2020). Iterative Pyramidal LK Optical Flow (https://www.mathworks.com/matlabcentral/fileexchange/23142-iterative-pyramidal-lk-optical-flow), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (11)

Arnab Dhara

Please don't use this code. It is a wrong implementation. The convergence depends on the number of scales, which it shouldn't.

alon begin

chenchao

r

Bob

Thanks.Recently,I'm researching this.

Y Simson

Nicely written code. Thanks

Assaf laufer

Hi all
the SAD before / SAD after is always at 1.6 ~ 1.9 for my pictures
Has anyone got beeter SAD ratio?

Berkin Bilgic

Hi,

The terms Ix^2 and Iy^2 denote the second derivatives wrt to x and y. However, that matrix is sometimes ill conditioned, so you may want to google 'good features to track' by Shi&Tomosi which discusses that problem.

Gabriel Kasser

Hi

I am a french student and I tried make your algorythm work with python but I have a problem (I don't know if it is me or the pdf). when I compute the G matrix , this one is always uninvertible (I dont see how it would be possible to invert a Matrix [[Ix²,Ix*Iy],[IX*Iy,Iy²]] because the determinant is always 0) could you help me please?

Best regards
GK

Berkin Bilgic

Hi,

I added two example images and some more comments, I hope they'll be online soon.

Berkin

Am VR

Hi Berkin,

Thanks for sharing this. Could you please also upload the images yos9.tif and yos10.tif referenced in the demo.m file?

Thanks!
Best,AV

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!