Skip to content

Image processing project of estimating optical flow by Horn-Schunck algorithm

Notifications You must be signed in to change notification settings

CowpatL/Optical-flow-Horn-Schunck-method

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Optical flow: Horn–Schunck method

Description

Python implementation of Horn–Schunck method for estimating optical flow.

Use computeHS to compute u,v optical flow vectors and draw quiver.
computeHS(name1, name2, alpha, delta)
Input: images name, smoothing parameter, tolerance
Output: images variations
The paramter 'alpha' is the regularization constant. It determines the smoothness of the output: The bigger this parameter is, the smoother the solutions we obtain (more locally consistent vectors of motion flow).

Example

From project directory type in console: MyHornSchunck.py car1.jpg car2.jpg
Output:

Anothr test options:
MyHornSchunck.py sphere1.bmp sphere2.bmp
MyHornSchunck.py table1.jpg table2.jpg
See results.

About

Image processing project of estimating optical flow by Horn-Schunck algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%