-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathReconstruction.cpp
More file actions
35 lines (29 loc) · 1.03 KB
/
Copy pathReconstruction.cpp
File metadata and controls
35 lines (29 loc) · 1.03 KB
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
/*******************************************************
* Copyright (C) 2020, Navigation And Location Group, Peking University
*
* This file is part of IncrementalSfm.
*
* Licensed under the GNU General Public License v3.0;
* you may not use this file except in compliance with the License.
*
* Author: GJH (guojh_rs@pku.edu.cn)
*******************************************************/
#include "sfm/config.h"
#include "sfm/reconstruction.h"
#include "sfm/utils.h"
int main(int argc, char **argv) {
using namespace sfm;
if (argc != 2) {
cerr << "Usage: Reconstruction <ConfigFilePath>\n";
return -1;
}
cout << "================================\n";
cout << "Reconstruction\n";
cout << "================================\n";
Config::instance()->setParameterFile(argv[1]);
string outputDir = Config::instance()->get<string>("output_dir");
Reconstruction reconstruction;
reconstruction.run();
reconstruction.writePLYBinary(Utils::unionPath(outputDir,"gjhAll.ply"));
return 0;
}