You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
563 B
29 lines
563 B
|
|
#ifndef _SaveImageFile_HPP_
|
|
#define _SaveImageFile_HPP_
|
|
|
|
#include <opencv2/opencv.hpp>
|
|
#include <iostream>
|
|
#include <vector>
|
|
|
|
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
|