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.
Shouldn't line 98-99 be:
Thank you! It's my need
Thanks for sharing it.
whitch terms should I delete if I want compute the optical flow only in the horizontal direction (I work with rectified images) ? thx
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)?
files are not complete,what is the meaning of the result pic?
no problem with matlab 2009
Sorry, the function 'impyramid' is not provided and thus, I could not test the code.
LKPR-marzat is NOT a valid file name...
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.