OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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
4 #include <openpose/core/common.hpp>
5 #include <openpose/core/gpuRenderer.hpp>
6 #include <openpose/pose/enumClasses.hpp>
7 #include <openpose/pose/poseExtractorNet.hpp>
8 #include <openpose/pose/poseParameters.hpp>
9 #include <openpose/pose/poseRenderer.hpp>
10
11 namespace op
12 {
13 class OP_API PoseGpuRenderer : public GpuRenderer, public PoseRenderer
14 {
15 public:
16 PoseGpuRenderer(const PoseModel poseModel, const std::shared_ptr<PoseExtractorNet>& poseExtractorNet,
17 const float renderThreshold, const bool blendOriginalFrame = true,
18 const float alphaKeypoint = POSE_DEFAULT_ALPHA_KEYPOINT,
19 const float alphaHeatMap = POSE_DEFAULT_ALPHA_HEAT_MAP,
20 const unsigned int elementToRender = 0u);
21
22 virtual ~PoseGpuRenderer();
23
24 void initializationOnThread();
25
26 std::pair<int, std::string> renderPose(Array<float>& outputData, const Array<float>& poseKeypoints,
27 const float scaleInputToOutput,
28 const float scaleNetToOutput = -1.f);
29
30 private:
31 const std::shared_ptr<PoseExtractorNet> spPoseExtractorNet;
32 // Init with thread
33 float* pGpuPose; // GPU aux memory
34
35 DELETE_COPY(PoseGpuRenderer);
36 };
37 }
38
39 #endif // OPENPOSE_POSE_POSE_GPU_RENDERER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
enumClasses.hpp
poseParameters.hpp
op::POSE_DEFAULT_ALPHA_KEYPOINT
const auto POSE_DEFAULT_ALPHA_KEYPOINT
Definition: poseParametersRender.hpp:10
op::PoseModel
PoseModel
Definition: enumClasses.hpp:9
poseExtractorNet.hpp
common.hpp
poseRenderer.hpp
op::PoseRenderer
Definition: poseRenderer.hpp:10
op::Array< float >
op::PoseGpuRenderer
Definition: poseGpuRenderer.hpp:13
op::GpuRenderer
Definition: gpuRenderer.hpp:11
gpuRenderer.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
op::POSE_DEFAULT_ALPHA_HEAT_MAP
const auto POSE_DEFAULT_ALPHA_HEAT_MAP
Definition: poseParametersRender.hpp:11