opencv-3D-restruction

所属分类:OpenCV
开发工具:C++
文件大小:757KB
下载次数:123
上传日期:2013-01-28 10:58:01
上 传 者悦吾君
说明:  此程序使用opencv计算相应图像对的视差并作出视差图,进而以之为基础进行图像的三维重建。
(This program calculates the disparity and plots the depthimage using opencv. Therefore, reconstruct the stereo image.)

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

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

近期下载者

相关文件


收藏者