No BSD License  

Highlights from
Horn-Schunck Optical Flow Method

4.3 | 14 ratings Rate this file 114 Downloads (last 30 days) File Size: 311 KB File ID: #22756
image thumbnail

Horn-Schunck Optical Flow Method


Mohd Kharbat

  • 1 file
  • 4.28571


22 Jan 2009 (Updated )

An implementaion of the very classical optical flow method of Horn & Schunck.

| Watch this File

File Information

An implementaion of the very classical optical flow method of Horn & Schunck according to their paper:

 Horn, B.K.P., and Schunck, B.G., Determining Optical Flow, AI(17), No. 1-3, August 1981, pp. 185-203

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (19)
14 Oct 2014 ana


Sir, what will be the value of alpha and no of iterations for the demo run of these images provided in the file..pls reply

Comment only
03 Mar 2014 Amin


very good job

25 Feb 2014 Twain


What type of velocity are these vectors representing on the image? Are they pixel velocities? If so, how do I go about averaging them and converting these values to something useful such as speed?

23 Dec 2013 taha


11 Oct 2013 hai zha

hai zha

18 Feb 2013 Bek Yun

Bek Yun

Good job!

20 Jun 2012 Andy



23 Apr 2012 Chen yuan

Chen yuan

thanks for sharing!

10 Mar 2012 Imad moi

Imad moi

29 Dec 2011 Yuan-min


Thank you

Comment only
10 Nov 2011 Tr?n H?u

Tr?n H?u

Hi Kharbat!
Uhm, Thanks for your code Sharing. I would like convert 2D video into 3D video by using optical flow. How can i use those optical flows in order to convert into depth map?

27 Oct 2011 Dacheng Huang

Dacheng Huang

May I have a look?Ha Ha

07 Jul 2011 Atif Anwer

Atif Anwer

09 Jun 2011 amir yavari

amir yavari

Hi. Thanks for your nice code. Can you explain How did you find [-1 1; -1 1],... in computeDerivates.m file? thanks

Comment only
04 May 2011 Matthew


04 May 2011 Matthew


Are you sure that the derivatives in the computeDerivates.m file are correct? Matlab stores images with the y-axis in the first dimension and the x-axis in the second, so I think that fx and fy might be the wrong way around...

Comment only
30 Mar 2011 saripah zura

saripah zura

how can i change the optical flow from pixel by pixel to 16x16?

Comment only
29 Apr 2010 David


09 Jun 2009 Andre Cohen

Andre Cohen

23 Jan 2009

Now includes the computeDerivatives function.

Contact us