forked from MasteringOpenCV/code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
executable file
·60 lines (51 loc) · 2.4 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
******************************************************************************
* Exploring Structure from Motion using OpenCV
******************************************************************************
* by Roy Shilkrot, 5th Dec 2012
* http://www.morethantechnical.com/
******************************************************************************
* Ch4 of the book "Mastering OpenCV with Practical Computer Vision Projects"
* Copyright Packt Publishing 2012.
* http://www.packtpub.com/cool-projects-with-opencv/book
******************************************************************************
NOTE: To build this project, you will need the Point Clouds Library (PCL) from "http://pointclouds.org/".
----------------------------------------------------------
Building the project using CMake from the command-line:
----------------------------------------------------------
Linux:
export OpenCV_DIR="~/OpenCV/build"
mkdir build
cd build
cmake -D OpenCV_DIR=$OpenCV_DIR ..
make
MacOSX (Xcode):
export OpenCV_DIR="~/OpenCV/build"
mkdir build
cd build
cmake -G Xcode -D OpenCV_DIR=$OpenCV_DIR ..
open ExploringSfMWithOpenCV.xcodeproj
Windows (MS Visual Studio):
set OpenCV_DIR="C:\OpenCV\build"
mkdir build
cd build
cmake -G "Visual Studio 9 2008" -D OpenCV_DIR=%OpenCV_DIR% ..
start ExploringSfMWithOpenCV.sln
----------------------------------------------------------
Running the project:
----------------------------------------------------------
ExploringSfMExec <path_to_images>
----------------------------------------------------------
Files
----------------------------------------------------------
SfM Library
Common.* - Common data structures and utility functions
Triangulation.* - Triangulation functions
FeatureMatching.* - Feature matching functions
FindCameraMatrices.* - Finding camera matrices functions
IDistance.h - Abstract class for SfM methods
Distance.* - SfM class for 2-view reconstruction
MultiCameraDistace.* - SfM abstract class for n-view reconstruction
MultiCameraPnP.* - SfM class for n-view using camera resection (PnP)
SfM Application
main.cpp - Main program
Visualization.* - Visualization of result point cloud using PCL