-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmain_domsetInterface.cc
34 lines (28 loc) · 1000 Bytes
/
main_domsetInterface.cc
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
// This file is part of OpenMVG (Open Multiple View Geometry) C++ library.
// Copyright (c) 2016 nomoko AG, Srivathsan Murali<[email protected]>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <iostream>
#include <ctime>
#include <iomanip>
#include <cstdlib>
#include <domsetInterface.h>
#include <domset.h>
using nomoko::Interface;
using nomoko::Domset;
int main(int argc, char** argv) {
if(argc < 2){
std::cout << "Error: domsetInterface bundleFile outputPrefix"<< std::endl;
exit(EXIT_FAILURE);
}
std::cout << "Arguments : "
<< "\nBundleFile = " << argv[1]
<< "\nPLYFile = " << argv[2] << std::endl;
// reading the bundle file
Interface di;
di.load(argv[1]);
Domset d(di.points, di.views, di.cameras, 10.0f);
d.clusterViews(20,30);
d.exportToPLY(argv[2]);
}