#ifndef _SaveImageFile_HPP_ #define _SaveImageFile_HPP_ #include #include #include using namespace std; using namespace cv; class SaveImageFile { public: SaveImageFile(); ~SaveImageFile(); int SetSavePath(const std::string &strRootPath); int saveImg(const cv::Mat &src_img, const cv::Mat &result_img, const std::string &strName, int nresult); int saveImg(const cv::Mat &img, const std::string &strName); private: bool createDirectories(const std::string &path); private: std::string m_strRootPath; }; #endif