Overview
--------
Optflow is a C++ library for motion detection and motion-based extrapolation
and morphing algorithms.
The following motion detection algorithms are implemented in Optflow:
* the Horn&Schunck variational approach
* global anisotropic diffusion algorithm by Proesmans et. al.
* Lucas&Kanade least-squares -based block matching
* interface for the Lucas&Kanade algorithm implemented in OpenCV
The first two algorithms generate dense vector fields (i.e. motion vectors for
each pixel in the source image). On the other hand, the Lucas&Kanade -based
algorithms generate sparse motion fields. This is done by computing the motion
for a given set of "feature points". All the above algorithms are implemented by
using image pyramids.
Optflow also contains algorithms for image warping by using a motion field. The
following methods are implemented:
* Inverse mapping: or each pixel in the second input image, find the
corresponding pixel in the first one.
* Forward mesh extrapolation: construct a textured triangle mesh from the
image and transform the mesh by using the motion field.
Dependencies and installation
-----------------------------
Required dependencies:
CImg >= 1.5 http://cimg.sourceforge.net
Optional dependencies:
Boost.Program_options http://www.boost.org
CGAL >= 4.2 http://www.cgal.org
OpenCV >= 2.4 http://sourceforge.net/projects/opencv
Optflow uses CMake for generating the makefiles. To build and install the
package, create a build directory, and type the following commands in it:
cmake <src_dic> -DCMAKE_INSTALL_PREFIX=<dest_dir>
make
sudo make install
The last step is optional. You can also use the compiled packages from the build
directory. The src_dir argument points to the source directory, and dest_dir
is the installation directory (e.g. /usr or /usr/local). Enabling and disabling
external dependencies can be done via the following options:
-DWITH_BOOST_PROGRAM_OPTIONS=ON/OFF command-line interface via Boost.Program_options
-DWITH_CGAL=ON/OFF support for sparse motion fields via CGAL
-DWITH_OPENCV=ON/OFF support for OpenCV algorithms
The installation is done to the following subdirectories in the destination
directory:
bin binaries
lib libraries (liboptflow.so)
include/optflow headers
The compiled package includes three binaries: `extractmotion`, `extrapolate` and
`morph`. To print their command-line syntax, run them without arguments. The
file `liboptflow.so` contains a linkable library.
Experimental support for MATLAB is also implemented. A MEX-file and a MATLAB
script for running it are located in the matlab-directory.
References
----------
The motion detection algorithms in this package are based on the following
references:
[1] J. Bouguet, Pyramidal Implementation of the Lucas Kanade
Feature Tracker: Description of the Algorithm, Technical
report, OpenCV documents, Intel Corporation, Microprocessor
Research Labs, 2000
[2] B.K. Horn and B. Schunck, Determining Optical Flow, Artificial Intelligence,
vol. 17, pp. 185-203, 1981
[3] B.D. Lucas and T. Kanade, An iterative image registration
technique with an application to stereo vision, in Proc.
Seventh International Joint Conference on Artificial
Intelligence, Vancouver, 1981, pp. 674-679
[4] M. Proesmans, L. Van Gool, E. Pauwels, and A. Oosterlinck,
Determination of optical flow and its discontinuities using
non-linear diffusion, in 3rd European Conference on Computer
Vision, ECCV’94, 1994, Vol. 2, pp. 295–304.
and the C-based implementations found at:
ftp://ftp.csd.uwo.ca/pub/vision
http://of-eval.sourceforge.net
Author: Seppo Pulkkinen <seppo.pulkkinen@fmi.fi>
没有合适的资源?快使用搜索试试~ 我知道了~
Optflow光流算法以及基于运动的变形和外推的C ++ / Python实现。
共83个文件
h:30个
cpp:28个
py:11个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 3 下载量 135 浏览量
2022-06-16
11:10:36
上传
评论
收藏 7.23MB ZIP 举报
温馨提示
Optflow光流算法以及基于运动的变形和外推的C ++ / Python实现。
资源推荐
资源详情
资源评论
收起资源包目录
2294313.zip (83个子文件)
1
Optflow-master
pyoptflow
test_motion.py 3KB
test_interpolation.py 2KB
pyoptflow
io_utils.py 8KB
core
utils.cpp 387B
CImg_config.h 118B
core.cpp 10KB
utils.hpp 2KB
algorithms.py 4KB
utils.py 3KB
interpolation.py 2KB
__init__.py 2B
ext
brox2_st
README 231B
clg
README 144B
README 217B
brox
README 256B
brox2
README 173B
visualization.py 6KB
extrapolation.py 3KB
precipfield1.h5 3.62MB
setup.py 2KB
README.md 2KB
precipfield2.h5 3.63MB
test_extrapolation.py 2KB
optflow
bin
morph.cpp 6KB
extractmotion.cpp 9KB
extrapolate.cpp 5KB
CMakeLists.txt 520B
CMakeLists.txt 1KB
lib
MotionExtractorDriver.h 2KB
SparseVectorFieldIO.cpp 2KB
InverseDenseImageExtrapolator.h 694B
version.h 130B
DenseVectorFieldIO.h 1KB
LucasKanadeOpenCV.h 1KB
PyramidalLucasKanade.h 1KB
DenseImageMorpher.h 1KB
LucasKanadeROI.h 1KB
VectorFieldIllustrator.h 1KB
ImagePyramid.h 1KB
LucasKanade.cpp 7KB
MotionExtractorDriver.cpp 6KB
PyramidalDenseMotionExtractor.h 3KB
SparseImageExtrapolator.h 2KB
PyramidalProesmans.cpp 1KB
DenseImageMorpher.cpp 722B
SparseVectorFieldIO.h 1KB
HornSchunck.h 2KB
SparseImageExtrapolator.cpp 4KB
ROI.cpp 2KB
PXMFileUtils.h 551B
InverseDenseImageExtrapolator.cpp 785B
DualDenseMotionExtractor.h 1KB
DenseImageExtrapolator.h 732B
Proesmans.cpp 9KB
SparseImageMorpher.h 1KB
ImageExtrapolatorDriver.h 3KB
SparseVectorField.h 2KB
PyramidalDenseMotionExtractor.cpp 5KB
PyramidalHornSchunck.h 728B
LucasKanadeROI.cpp 2KB
HornSchunck.cpp 5KB
LucasKanade.h 2KB
SparseVectorField.cpp 3KB
PXMFileUtils.cpp 1KB
ImageExtrapolatorDriver.cpp 2KB
CImg_config.h 105B
DualDenseMotionExtractor.cpp 347B
VectorFieldIllustrator.cpp 4KB
DenseVectorFieldIO.cpp 2KB
PyramidalHornSchunck.cpp 1KB
CMakeLists.txt 2KB
SparseMotionExtractor.h 1KB
ROI.h 1KB
DenseMotionExtractor.h 2KB
PyramidalLucasKanade.cpp 1KB
LucasKanadeOpenCV.cpp 4KB
ForwardDenseImageExtrapolator.h 832B
PyramidalProesmans.h 661B
Proesmans.h 2KB
SparseImageMorpher.cpp 672B
ImagePyramid.cpp 1KB
README.md 4KB
README.md 108B
共 83 条
- 1
资源评论
- xiaoyu_xy2192023-01-19怎么能有这么好的资源!只能用感激涕零来形容TAT...
- m0_599375842023-09-07感谢资源主的分享,这个资源对我来说很有用,内容描述详尽,值得借鉴。
- 2301_765181362023-11-09感谢资源主的分享,这个资源对我来说很有用,内容描述详尽,值得借鉴。
GZM888888
- 粉丝: 121
- 资源: 2902
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功