OpenVis3D: Open Source 3D Vision Library
The goal of this project is to provide a library of efficient 3D computer vision routines for image and video processing. It currently includes routines for dense stereo matching, optical flow (motion) estimation, occlusion detection, and egomotion (3D self-motion) estimation.
**********************************************************
Copyright 2006 Abhijit Ogale
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
**********************************************************
Contributors:
Abhijit Ogale (http://www.cs.umd.edu/users/ogale):
-- Overall library design, Dense stereo and optical flow code.
Justin Domke (http://www.cs.umd.edu/users/domke)
-- 3D egomotion estimation.
**********************************************************
Documentation:
http://www.cs.umd.edu/users/ogale/openvis3d/docs/index.html
**********************************************************
Examples showing how to use the library:
**********************************************************
A) OpenCV Example:
**********************************************************
A sample program OpencvExample.cpp which tests the stereo and optical flow code on the included image pairs is provided. A Makefile is also provided. This particular example uses OpenCV, hence please modify the following lines of the Makefile to suit your OpenCV installation:
* Change include path:
INC = -I /usr/include/opencv
* Change the library path and the names of the libraries if needed:
LDFLAGS = -L /usr/lib -L . -lm -lcv -lhighgui -lcvaux
**********************************************************
B) Matlab Examples:
**********************************************************
1) STEREO
OvStereoMatlab.cpp shows how the stereo algorithm can be called from Matlab. It first be compiled into mex files using Matlab by going to the directory containing OpenVis3D and running the following command within Matlab:
mex OvStereoMatlab.cpp MatlabImageAdapter.cpp OvImageAdapter.cpp
Once the mex file is created, you can execute the stereo algorithm on the supplied images as follows in Matlab:
i1 = imread('tsukuba1color.png');
i2 = imread('tsukuba2color.png');
minshift = 5;
maxshift = 15;
[bestshiftsL, occlL, bestshiftsR, occlR] = OvStereoMatlab(i1, i2, minshift, maxshift);
% To display results, you can run the following commands:
figure; imagesc(bestshiftsL);
figure; imagesc(bestshiftsR);
figure; imagesc(occlL);
figure; imagesc(occlR);
*****************************
2) OPTICAL FLOW
OvFlowMatlab.cpp shows how the optical flow algorithm can be called from Matlab. It first be compiled into mex files using Matlab by going to the directory containing OpenVis3D and running the following command within Matlab:
mex OvFlowMatlab.cpp MatlabImageAdapter.cpp OvImageAdapter.cpp
Once the mex file is created, you can execute the optical flow algorithm on the supplied images as follows in Matlab:
i1 = imread('car1.png');
i2 = imread('car0.png');
minshiftX = 0;
maxshiftX = 18;
minshiftY = -3;
maxshiftY = 0;
[bestshiftsLX, bestshiftsLY, occlL, bestshiftsRX, bestshiftsRY, occlR] = OvFlowMatlab(i1, i2, minshiftX, maxshiftX, minshiftY, maxshiftY);
% To display results, you can use the following commands:
figure; imagesc(bestshiftsLX);
figure; imagesc(bestshiftsLY);
figure; imagesc(bestshiftsRX);
figure; imagesc(bestshiftsRY);
figure; imagesc(occlL);
figure; imagesc(occlR);
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
openvis3dsrc.zip (31个子文件)
OvLocalMatcherT.h 2KB
MatlabImageAdapter.cpp 6KB
OvFlowGlobalMatcherT.h 3KB
OvStereoGlobalMatcherT.h 2KB
mainpage.h 1KB
OvFlowT.h 9KB
OvStereoMatlab.cpp 2KB
OvImageAdapter.h 3KB
car0.png 186KB
tsukuba2color.png 171KB
OvFlowDiffuseMatcherT.h 8KB
OvImageAdapter.cpp 436B
tsukuba1color.png 170KB
OvDisparityPostprocessor.h 2KB
ProbabilisticEgomotion.cpp 14KB
OvStereoT.h 9KB
ProbabilisticEgomotion.h 2KB
Openvis3d.h 410B
BTLocalMatcherT.h 6KB
OvFlowPostprocessor.h 2KB
README.txt 4KB
OpenCVImageAdapter.h 2KB
OvFlowMatlab.cpp 3KB
OvImageT.h 98KB
MatlabImageAdapter.h 2KB
OvStereoDiffuseMatcherT.h 7KB
Makefile 926B
OpencvExample.cpp 8KB
OpenCVImageAdapter.cpp 5KB
OvImagePairPreprocessorT.h 1KB
car1.png 187KB
共 31 条
- 1
资源评论
- 泡泡格尔2016-10-11这个算法很经典,修改了一下,能够用到自己的分割应用,赞一个!
- amojry2012-01-09这个版本的,我就试了一下,可以跑,但是貌似版本过老了哦~
redhat126
- 粉丝: 0
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功