OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
opOutputToCvMat.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_CORE_OP_OUTPUT_TO_CV_MAT_HPP
2 #define OPENPOSE_CORE_OP_OUTPUT_TO_CV_MAT_HPP
3 
5 
6 namespace op
7 {
9  {
10  public:
11  OpOutputToCvMat(const bool gpuResize = false);
12 
13  virtual ~OpOutputToCvMat();
14 
16  const std::tuple<std::shared_ptr<float*>, std::shared_ptr<bool>, std::shared_ptr<unsigned long long>>& tuple);
17 
18  Matrix formatToCvMat(const Array<float>& outputData);
19 
20  private:
21  const bool mGpuResize;
22  // Shared variables
23  std::shared_ptr<float*> spOutputImageFloatCuda;
24  std::shared_ptr<unsigned long long> spOutputMaxSize;
25  std::shared_ptr<bool> spGpuMemoryAllocated;
26  // Local variables
27  unsigned char* pOutputImageUCharCuda;
28  unsigned long long mOutputMaxSizeUChar;
29  };
30 }
31 
32 #endif // OPENPOSE_CORE_OP_OUTPUT_TO_CV_MAT_HPP
OpOutputToCvMat(const bool gpuResize=false)
Matrix formatToCvMat(const Array< float > &outputData)
void setSharedParameters(const std::tuple< std::shared_ptr< float * >, std::shared_ptr< bool >, std::shared_ptr< unsigned long long >> &tuple)
virtual ~OpOutputToCvMat()
#define OP_API
Definition: macros.hpp:18