26 #ifndef FILE_OPERATIONS_H 27 #define FILE_OPERATIONS_H 41 #include <boost/tokenizer.hpp> 42 #include <boost/algorithm/string.hpp> 153 #endif // FILE_OPERATIONS_H Fields declaration of the experiment settings.
EXPERIMENT experiment_settings
Definition: main.cpp:59
std::string filter_string(std::string str)
filter_string filter a string to remove white spaces and line break.
Definition: file_operations.cpp:352
std::vector< std::vector< double > > loadInstabilityCostsFromFile(const EXPERIMENT &experiment_settings)
loadInstabilityCostsFromFile Loads the instability costs from a CSV file (matrix format).
Definition: file_operations.cpp:259
double getSemanticCost(const EXPERIMENT &experiment_settings, const int frame_src, const int frame_dst)
Function that returns the semantic cost of the transiction from the frame_src to the frame_dst...
Definition: file_operations.cpp:209
void readSelectedFramesCSV(std::string filename, std::vector< int > &selected_frames)
Function to read a CSV composed by frames selected by the selection algorithm.
Definition: file_operations.cpp:111
Definition: experiment_struct.h:32
std::string getExperimentId()
Function that manages the experiments ID automatically.
Definition: file_operations.cpp:141
bool str2bool(std::string str)
str2bool convert a string to boolean.
Definition: file_operations.cpp:334
bool saveMasterFramesToFile(const EXPERIMENT &experiment_settings, const std::vector< int > masters_frames)
Function to save the calculated master frames into a file defined in the field save_masterframes_file...
Definition: file_operations.cpp:76
std::vector< std::vector< double > > loadOpticalFlow(const EXPERIMENT &experiment_settings)
loadOpticalFlow Loads the Optical Flow calculated by the FlowNet from a CSV file. ...
Definition: file_operations.cpp:294
std::vector< int > loadMasterFramesFromFile(const EXPERIMENT &experiment_settings)
Function to load the master frames from a file defined in the field read_masterframes_filename in the...
Definition: file_operations.cpp:39