Skip to content

Robert Barron optical flow code: slightest modifications for modern computers

License

Notifications You must be signed in to change notification settings

jacob-rains/barron-optflow

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 59.5%
  • Roff 23.8%
  • PostScript 14.6%
  • Fortran 1.8%
  • CMake 0.3%