No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Iterative Pyramidal LK Optical Flow

4.5 | 4 ratings Rate this file 29 Downloads (last 30 days) File Size: 373 KB File ID: #23142 Version: 1.2
image thumbnail

Iterative Pyramidal LK Optical Flow



27 Feb 2009 (Updated )

An implementation of Lucas-Kanade optical flow computation.

| Watch this File

File Information

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

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
24 Nov 2016 r

r (view profile)

28 Sep 2014 Bob

Bob (view profile)

Thanks.Recently,I'm researching this.

17 May 2014 Y Simson

Y Simson (view profile)

Nicely written code. Thanks

28 Apr 2009 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?

Comment only
14 Apr 2009 Berkin Bilgic


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.

Comment only
11 Apr 2009 Gabriel Kasser


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

Comment only
01 Mar 2009 Berkin Bilgic


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


Comment only
27 Feb 2009 Am VR

Am VR (view profile)

Hi Berkin,

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


27 Feb 2009 1.1

Example images and a few more comments are added

27 Mar 2009 1.2

Borders are handled better, and refinement is updated.

Contact us