OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
poseGpuRenderer.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_POSE_POSE_GPU_RENDERER_HPP
2 #define OPENPOSE_POSE_POSE_GPU_RENDERER_HPP
3 
11 
12 namespace op
13 {
15  {
16  public:
18  const PoseModel poseModel, const std::shared_ptr<PoseExtractorNet>& poseExtractorNet,
19  const float renderThreshold, const bool blendOriginalFrame = true,
20  const float alphaKeypoint = POSE_DEFAULT_ALPHA_KEYPOINT,
21  const float alphaHeatMap = POSE_DEFAULT_ALPHA_HEAT_MAP, const unsigned int elementToRender = 0u);
22 
23  virtual ~PoseGpuRenderer();
24 
26 
27  std::pair<int, std::string> renderPose(Array<float>& outputData, const Array<float>& poseKeypoints,
28  const float scaleInputToOutput,
29  const float scaleNetToOutput = -1.f);
30 
31  private:
32  const std::shared_ptr<PoseExtractorNet> spPoseExtractorNet;
33  // Init with thread
34  float* pGpuPose; // GPU aux memory
35  float* pMaxPtr; // GPU aux memory
36  float* pMinPtr; // GPU aux memory
37  float* pScalePtr; // GPU aux memory
38 
40  };
41 }
42 
43 #endif // OPENPOSE_POSE_POSE_GPU_RENDERER_HPP
PoseGpuRenderer(const PoseModel poseModel, const std::shared_ptr< PoseExtractorNet > &poseExtractorNet, const float renderThreshold, const bool blendOriginalFrame=true, const float alphaKeypoint=POSE_DEFAULT_ALPHA_KEYPOINT, const float alphaHeatMap=POSE_DEFAULT_ALPHA_HEAT_MAP, const unsigned int elementToRender=0u)
std::pair< int, std::string > renderPose(Array< float > &outputData, const Array< float > &poseKeypoints, const float scaleInputToOutput, const float scaleNetToOutput=-1.f)
void initializationOnThread()
virtual ~PoseGpuRenderer()
#define OP_API
Definition: macros.hpp:18
#define DELETE_COPY(className)
Definition: macros.hpp:32
const auto POSE_DEFAULT_ALPHA_KEYPOINT
const auto POSE_DEFAULT_ALPHA_HEAT_MAP
PoseModel
Definition: enumClasses.hpp:10