Skip to content

scivision/barron-optflow

Barron Optical Flow Code

cmake

Original code modified to run with modern compilers.

Examples

A C compiler is required. Some of the programs require a Fortran compiler and/or BLAS library.

  • Linux: apt install gcc gfortran libopenblas-dev
  • Mac: brew install gcc openblas
cmake --workflow --preset default

Horn-Schunck optical flow on Tree image set

./horn new2binarytreet. 0.5 1.5 20 100 ../TESTDATA/TREE_DATA/TRANS out/ -B 150 150 -MH -T 5.0

convert output to Postscript and view (can use other viewer beside Evince)

./flow2ps out/horn.modified.new2binarytreet.F-5.00 out/hornOF.ps

evince out/hornOF.ps

Lucas-Kanade optical flow on Tree image set

./lucas new2binarytreet. 1.5 20 1.0 ../TESTDATA/TREE_DATA/TRANS out/ -B 150 150

convert output to Postscript and view (can use other viewer beside Evince)

./flow2ps out/lucas.new2binarytreet.20F-1.00-1.5 out/lucas20F.ps

evince out/lucas20F.ps

About

Robert Barron optical flow code: slightest modifications for modern computers

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors