-
Notifications
You must be signed in to change notification settings - Fork 7
/
readme.txt
executable file
·109 lines (86 loc) · 5.07 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
####################################################################################
# Copyright 2012. All rights reserved. #
# Institute of Measurement and Control Systems #
# Karlsruhe Institute of Technology, Germany #
# #
# This file is part of libviso2. #
# Authors: Andreas Geiger #
# Please send any bugreports to [email protected] #
# #
# libviso2 is free software; you can redistribute it and/or modify it under the #
# terms of the GNU General Public License as published by the Free Software #
# Foundation; either version 2 of the License, or any later version. #
# #
# libviso2 is distributed in the hope that it will be useful, but WITHOUT ANY #
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A #
# PARTICULAR PURPOSE. See the GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License along with #
# libviso2; if not, write to the Free Software Foundation, Inc., 51 Franklin #
# Street, Fifth Floor, Boston, MA 02110-1301, USA #
####################################################################################
+++++++++++++++++++++++++++++++++++
+ INTRODUCTION +
+++++++++++++++++++++++++++++++++++
Libviso 2 (LIBrary for ViSual Odometry 2) is a cross-platfrom (Linux, Windows) C++
library with MATLAB wrappers for computing the 6 DOF motion of a moving stereo
camera. Input is a sequence of rectified stereo images. Output is a 4x4 matrix
which projects a point from the previous to the current camera coordinates.
Version 2 now also supports visual odometry from monocular sequences, and the
feature matching functions implement sparse stereo, scene flow and optical flow.
For more details, please have a look at the corresponding publication.
If you distribute a software that uses libviso, you have to distribute it under GPL
with the source code. Another option is to contact us to purchase a commercial license.
If you find this software useful or if you use this software for your research,
we would be happy if you cite the following related publication:
@INPROCEEDINGS{Geiger11,
author = {Andreas Geiger and Julius Ziegler and Christoph Stiller},
title = {StereoScan: Dense 3d Reconstruction in Real-time},
booktitle = {IEEE Intelligent Vehicles Symposium},
year = {2011},
month = {June},
address = {Baden-Baden, Germany}
}
+++++++++++++++++++++++++++++++++++
+ COMPILING MATLAB WRAPPERS +
+++++++++++++++++++++++++++++++++++
Prerequisites needed for compiling libviso2:
- Matlab (if you want to compile the matlab wrappers)
- gcc or Visual Studio (if you want to include the code in your C++ project)
If you want to use libviso directly from MATLAB you can easily do this by using
the MATLAB wrappers provided. They also include some demo files for testing.
In the MATLAB directory of libviso, simply run 'make.m' to generate the mex wrappers.
(Run mex -setup before to choose your desired compiler)
Now try to run the demo*.m files!
For some of them you will need the Karlsruhe dataset from www.cvlibs.net.
+++++++++++++++++++++++++++++++++++
+ BUILDING A C++ LIBRARY +
+++++++++++++++++++++++++++++++++++
Prerequisites needed for compiling and running the libviso2 demonstration
tool via c++:
- libpng (available at: http://www.libpng.org/pub/png/libpng.html)
- libpng++ (available at: http://www.nongnu.org/pngpp/)
- sequence 2010_03_09_drive_0019 (available at: http://www.cvlibs.net/)
libpng and png++ are needed for reading the png input images. On a ubuntu
box you can get them via apt:
- sudo apt-get install libpng12-dev
- sudo apt-get install libpng++-dev
Linux:
1) Move to libviso2 root directory
2) Type 'cmake .'
3) Type 'make'
4) Run './viso2 path/to/sequence/2010_03_09_drive_0019'
Windows:
1) Modify CMakefile according to your needs (libpng(++) must be found)
2) Start CMake GUI
3) Set directories to libviso2 root directory
4) Run configure, configure and generate
5) Open the resulting Visual Studio solution with Visual Studio
6) Switch to 'Release' mode and build all
9) Run 'viso2.exe path/to/sequence/2010_03_09_drive_0019'
For more information on CMake, have a look at the CMake documentation.
For more information on the usage of the library, have a look into the
MATLAB wrappers, demo.cpp, viso.h, viso_stereo.h, viso_mono.h and
matcher.h.
Please send any feedback and bugreports to [email protected]
Andreas Geiger