双目匹配求解

所属分类:图形图像处理
开发工具:matlab
文件大小:759KB
下载次数:2
上传日期:2020-10-31 11:25:37
上 传 者依然香
说明:  一个双目匹配求解视差图的matlab源代码
(A binocular matching to solve the disparity map of Matlab source code)

文件列表:
BTLocalMatcherT.h (5663, 2007-02-01)
car0.png (190100, 2007-01-30)
car1.png (191767, 2007-01-30)
mainpage.h (1262, 2007-02-01)
Makefile (926, 2007-02-01)
MatlabImageAdapter.cpp (5847, 2007-02-01)
MatlabImageAdapter.h (1715, 2007-02-01)
OpencvExample.cpp (8110, 2007-02-01)
OpenCVImageAdapter.cpp (4919, 2007-02-01)
OpenCVImageAdapter.h (1624, 2007-02-01)
Openvis3d.h (410, 2007-02-01)
OvDisparityPostprocessor.h (1665, 2007-02-01)
OvFlowDiffuseMatcherT.h (8055, 2007-02-01)
OvFlowGlobalMatcherT.h (2579, 2007-02-01)
OvFlowMatlab.cpp (3058, 2007-02-01)
OvFlowPostprocessor.h (1711, 2007-02-01)
OvFlowT.h (9065, 2007-02-01)
OvImageAdapter.cpp (436, 2007-02-01)
OvImageAdapter.h (2831, 2007-02-01)
OvImagePairPreprocessorT.h (1408, 2007-02-01)
OvImageT.h (100043, 2007-02-01)
OvLocalMatcherT.h (2195, 2007-01-30)
OvStereoDiffuseMatcherT.h (7551, 2007-02-01)
OvStereoGlobalMatcherT.h (2306, 2007-02-01)
OvStereoMatlab.cpp (2540, 2007-02-01)
OvStereoT.h (9094, 2007-02-01)
ProbabilisticEgomotion.cpp (14293, 2007-02-01)
ProbabilisticEgomotion.h (2474, 2007-02-01)
tsukuba1color.png (174571, 2007-01-30)
tsukuba2color.png (175014, 2007-01-30)

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);

近期下载者

相关文件


收藏者