Original code modified to run with modern compilers.
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
meson build
meson test -C build
- Run 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
- Run Horn-Schunck 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