4.5

4.5 | 2 ratings Rate this file 73 Downloads (last 30 days) File Size: 73.87 KB File ID: #22950
image thumbnail

Lucas & Kanade Pyramidal Refined Optical Flow implementation

by Julien Marzat

 

11 Feb 2009 (Updated 11 Feb 2009)

This file implements the well-known LK algorithm, with regularization and subpixelic computation.

| Watch this File

File Information
Description

This algorithm has also been implemented in CUDA language for parallel execution, which allows to perform real-time optical flow. See CUDA Zone for more details.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
11 Feb 2009 us

LKPR-marzat is NOT a valid file name...
us

17 Nov 2009 Said Pertuz

Sorry, the function 'impyramid' is not provided and thus, I could not test the code.
Said

15 Nov 2010 pupu QQ

no problem with matlab 2009

15 Nov 2010 pupu QQ  
15 Nov 2010 pupu QQ

files are not complete,what is the meaning of the result pic?

24 Jan 2011 Leo Ono  
17 Jul 2011 Vasiliki

The code worked but I have some questions.
Why are the velocity arrays not of equal sizes as the image?
I used the images you included 252x316 and u and v where of 236x300.
While reconstuncting the image I(i,j) = Iold(i+u,j+v) the result wasn't very good. Have you tried reconstructing the image using only the first one and the velocity vectors? If so, can you provide the source ( just to check if my reconstructing code is bad written)?

07 Oct 2011 F Oneair

Hi,
whitch terms should I delete if I want compute the optical flow only in the horizontal direction (I work with rectified images) ? thx

Please login to add a comment or rating.
Updates
11 Feb 2009

filename fixed

Tag Activity for this File
Tag Applied By Date/Time
image processing Julien Marzat 11 Feb 2009 12:58:59
optical flow Julien Marzat 11 Feb 2009 12:58:59
image processing rajitha 11 Sep 2009 01:11:40
optical flow alice 22 May 2011 06:13:31
image processing Abdel Ilah 02 Jun 2011 23:53:54
lucas kanade vignesh 04 Aug 2011 02:20:18
optical flow Deli Zhang 12 Oct 2011 00:42:33

Contact us at files@mathworks.com