OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
imageSaver.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_FILESTREAM_IMAGE_SAVER_HPP
2 #define OPENPOSE_FILESTREAM_IMAGE_SAVER_HPP
3 
6 
7 namespace op
8 {
9  class OP_API ImageSaver : public FileSaver
10  {
11  public:
12  ImageSaver(const std::string& directoryPath, const std::string& imageFormat);
13 
14  virtual ~ImageSaver();
15 
16  void saveImages(const Matrix& cvOutputData, const std::string& fileName) const;
17 
18  void saveImages(const std::vector<Matrix>& matOutputDatas, const std::string& fileName) const;
19 
20  private:
21  const std::string mImageFormat;
22  };
23 }
24 
25 #endif // OPENPOSE_FILESTREAM_IMAGE_SAVER_HPP
void saveImages(const Matrix &cvOutputData, const std::string &fileName) const
ImageSaver(const std::string &directoryPath, const std::string &imageFormat)
void saveImages(const std::vector< Matrix > &matOutputDatas, const std::string &fileName) const
virtual ~ImageSaver()
#define OP_API
Definition: macros.hpp:18