OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
cvMatToOpOutput.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_CORE_CV_MAT_TO_OP_OUTPUT_HPP
2 #define OPENPOSE_CORE_CV_MAT_TO_OP_OUTPUT_HPP
3 
5 
6 namespace op
7 {
9  {
10  public:
11  CvMatToOpOutput(const bool gpuResize = false);
12 
13  virtual ~CvMatToOpOutput();
14 
15  std::tuple<std::shared_ptr<float*>, std::shared_ptr<bool>, std::shared_ptr<unsigned long long>>
17 
19  const Matrix& inputData, const double scaleInputToOutput, const Point<int>& outputResolution);
20 
21  private:
22  const bool mGpuResize;
23  unsigned char* pInputImageCuda;
24  std::shared_ptr<float*> spOutputImageCuda;
25  unsigned long long pInputMaxSize;
26  std::shared_ptr<unsigned long long> spOutputMaxSize;
27  std::shared_ptr<bool> spGpuMemoryAllocated;
28  };
29 }
30 
31 #endif // OPENPOSE_CORE_CV_MAT_TO_OP_OUTPUT_HPP
CvMatToOpOutput(const bool gpuResize=false)
virtual ~CvMatToOpOutput()
std::tuple< std::shared_ptr< float * >, std::shared_ptr< bool >, std::shared_ptr< unsigned long long > > getSharedParameters()
Array< float > createArray(const Matrix &inputData, const double scaleInputToOutput, const Point< int > &outputResolution)
#define OP_API
Definition: macros.hpp:18