All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
poseGpuRenderer.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_POSE_POSE_GPU_RENDERER_HPP
#define OPENPOSE_POSE_POSE_GPU_RENDERER_HPP
#include <openpose/core/common.hpp>
#include <openpose/core/gpuRenderer.hpp>
#include <openpose/pose/enumClasses.hpp>
#include <openpose/pose/poseExtractorNet.hpp>
#include <openpose/pose/poseParameters.hpp>
#include <openpose/pose/poseRenderer.hpp>
namespace op
{
class OP_API PoseGpuRenderer : public GpuRenderer, public PoseRenderer
{
public:
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);
virtual ~PoseGpuRenderer();
void initializationOnThread();
std::pair<int, std::string> renderPose(Array<float>& outputData, const Array<float>& poseKeypoints,
const float scaleInputToOutput,
const float scaleNetToOutput = -1.f);
private:
const std::shared_ptr<PoseExtractorNet> spPoseExtractorNet;
// Init with thread
float* pGpuPose; // GPU aux memory
DELETE_COPY(PoseGpuRenderer);
};
}
#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