-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUtils.h
42 lines (27 loc) · 922 Bytes
/
Utils.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
//
// Created by francesca on 05/10/20.
//
#ifndef MEAN_SHIFT_UTILS_H
#define MEAN_SHIFT_UTILS_H
#include <vector>
#include <string>
#include "Point.h"
std::vector<Point> CSVReader(const std::string &filename);
//std::vector<Point> readPointsFromCSV(const std::string& fileName);
std::vector<Point> getPointsFromCsv(std::string& fileName);
void savePointsToCsv(std::vector<Point> points, std::string filename, int verbose);
void read();
void CSVWriter(const std::string &filename, std::vector<Point> points);
std::vector<std::string> getPathTokens(std::string s, std::string delimiter);
struct Result{
bool opeMP_par; // 0: sequential, 1: openMP
bool omp_static = false;
int n_threads = 0;
int num_points;
float bandwidth;
int ms_iterations;
int runs;
float time;
};
void saveResultsToCsv(std::vector<Result> results_time, std::string filename);
#endif //MEAN_SHIFT_UTILS_H