-
Notifications
You must be signed in to change notification settings - Fork 13
/
ioutilities.h
30 lines (22 loc) · 991 Bytes
/
ioutilities.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
#ifndef MULTILINEARRECONSTRUCTION_IOUTILITIES_H
#define MULTILINEARRECONSTRUCTION_IOUTILITIES_H
#include "common.h"
#include "constraints.h"
#include "utils.hpp"
#include "boost/algorithm/string/split.hpp"
#include "boost/algorithm/string/classification.hpp"
#include "parameters.h"
#include <QImage>
vector<string> ReadFileByLine(const string &filename);
vector<int> LoadIndices(const string &filename);
vector<float> LoadFloats(const string &filename);
vector<vector<int>> LoadContourIndices(const string& filename);
namespace std {
inline istream& operator>>(istream& is, Constraint2D& c);
}
vector<Constraint2D> LoadConstraints(const string& filename);
pair<QImage, vector<Constraint2D>> LoadImageAndPoints(
const string &image_filename, const string &pts_filename, bool resize=true);
vector<pair<string, string>> ParseSettingsFile(const string &filename);
ReconstructionResult LoadReconstructionResult(const string &filename);
#endif //MULTILINEARRECONSTRUCTION_IOUTILITIES_H