OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
cvMatToOpInput.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_CORE_CV_MAT_TO_OP_INPUT_HPP
2 #define OPENPOSE_CORE_CV_MAT_TO_OP_INPUT_HPP
3 
6 
7 namespace op
8 {
10  {
11  public:
12  CvMatToOpInput(const PoseModel poseModel = PoseModel::BODY_25, const bool gpuResize = false);
13 
14  virtual ~CvMatToOpInput();
15 
16  std::vector<Array<float>> createArray(
17  const Matrix& inputData, const std::vector<double>& scaleInputToNetInputs,
18  const std::vector<Point<int>>& netInputSizes);
19 
20  private:
21  const PoseModel mPoseModel;
22  const bool mGpuResize;
23  unsigned char* pInputImageCuda;
24  float* pInputImageReorderedCuda;
25  float* pOutputImageCuda;
26  unsigned long long pInputMaxSize;
27  unsigned long long pOutputMaxSize;
28  };
29 }
30 
31 #endif // OPENPOSE_CORE_CV_MAT_TO_OP_INPUT_HPP
CvMatToOpInput(const PoseModel poseModel=PoseModel::BODY_25, const bool gpuResize=false)
std::vector< Array< float > > createArray(const Matrix &inputData, const std::vector< double > &scaleInputToNetInputs, const std::vector< Point< int >> &netInputSizes)
virtual ~CvMatToOpInput()
#define OP_API
Definition: macros.hpp:18
PoseModel
Definition: enumClasses.hpp:10