forked from nmoehrle/mvs-texturing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Arguments.h
54 lines (44 loc) · 1.26 KB
/
Arguments.h
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
#pragma once
#include "util/arguments.h"
#include "DataTerm.h"
#include "SmoothnessTerm.h"
#include "OutlierRemoval.h"
/** Struct containing the commandline arguments at runtime. */
struct Arguments {
std::string in_scene;
std::string in_mesh;
std::string out_prefix;
std::string data_cost_file;
std::string labeling_file;
DataTerm data_term;
SmoothnessTerm smoothness_term;
OutlierRemoval outlier_removal;
bool write_view_selection_model;
bool write_data_term_histograms;
bool write_mrf_energies;
bool geometric_visibility_test;
bool global_seam_leveling;
bool local_seam_leveling;
/** Returns a muliline string of the current arguments. */
std::string to_string();
};
/**
* Parses the commandline arguments.
* @throws std::invalid_argument
*/
Arguments parse_args(int argc, char **argv);
/**
* Parses the string s to its corresponding SmoothnessTerm.
* @throws std::invalid_argument
*/
SmoothnessTerm parse_smoothness_term(std::string s);
/**
* Parses the string s to its corresponding DataTerm.
* @throws std::invalid_argument
*/
DataTerm parse_data_term(std::string s);
/**
* @param s
* @return The outlier removal method corresponding to s.
*/
OutlierRemoval parse_outlier_removal(std::string s);