11 #include "../core/ObjectData.h" 12 #include "../graph/Definitions.h" 13 #include "../core/Tracklet.h" 17 typedef std::vector<std::vector<std::vector<double>>> Vector3d;
18 typedef std::vector<std::vector<double>> Vector2d;
19 typedef std::unordered_map<std::string, double> ValueMap;
20 typedef std::vector<ValueMap> ValueMapVector;
40 static void ReadCSV(Vector3d& values,
const std::string& file_name,
char delimiter);
50 static void ReadCSV(Vector2d& values,
const std::string& file_name,
char delimiter);
59 static void ListFiles(
const std::string& folder, std::vector<std::string>& file_names,
69 static void WriteCSVMatlab(DirectedGraph& graph,
const std::string& file_name);
80 static void WriteCSVMatlab(MultiPredecessorMap& map, Vertex& source, Vertex& sink,
81 const std::string& file_name);
92 static void ReadCSV(ValueMapVector& values,
const std::string& file_name,
char delimiter);
104 static void ReadCSV(ValueMapVector& values,
const std::string& header,
105 const std::string& file_name,
char delimiter);
108 static void WriteTracks(std::vector<core::TrackletPtr>& tracks,
const std::string& file_name,
111 static void ReadTracks(std::vector<core::TrackletPtr>& tracks,
const std::string& file_name,
114 static std::vector<std::string> split(
const std::string& input,
char delimiter);
119 #endif //GBMOT_FILEIO_H Definition: FileIO.cpp:11
static void ListFiles(const std::string &folder, std::vector< std::string > &file_names, bool sort=true)
Definition: FileIO.cpp:117
static void WriteCSVMatlab(DirectedGraph &graph, const std::string &file_name)
Definition: FileIO.cpp:151
static void ReadCSV(Vector3d &values, const std::string &file_name, char delimiter)
Definition: FileIO.cpp:13