4 #include <opencv2/opencv.hpp>
10 std::string
basename(
const std::string &path,
bool include_extension =
false);
16 bool write_cvmat(
const std::string &fname,
const cv::Mat &data);
19 bool load_cvmat(
const std::string &fname, cv::Mat &data);
22 bool write_sparse_vector(
const std::string &fname,
const std::vector<std::pair<uint32_t, float > > &data);
25 bool load_sparse_vector(
const std::string &fname, std::vector<std::pair<uint32_t, float > > &data);
28 std::vector<std::string>
list_files(
const std::string &path,
const std::string &ext =
"",
bool recursive =
true) ;
31 bool write_text(
const std::string &fname,
const std::string &text);