OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
op::GpuRenderer Class Reference

#include <gpuRenderer.hpp>

Inheritance diagram for op::GpuRenderer:
op::Renderer op::FaceGpuRenderer op::HandGpuRenderer op::PoseGpuRenderer

Public Member Functions

 GpuRenderer (const float renderThreshold, const float alphaKeypoint, const float alphaHeatMap, const bool blendOriginalFrame=true, const unsigned int elementToRender=0u, const unsigned int numberElementsToRender=0u)
 
virtual ~GpuRenderer ()
 
std::tuple< std::shared_ptr< float * >, std::shared_ptr< bool >, std::shared_ptr< std::atomic< unsigned int > >, std::shared_ptr< unsigned long long >, std::shared_ptr< const unsigned int > > getSharedParameters ()
 
void setSharedParametersAndIfLast (const std::tuple< std::shared_ptr< float * >, std::shared_ptr< bool >, std::shared_ptr< std::atomic< unsigned int >>, std::shared_ptr< unsigned long long >, std::shared_ptr< const unsigned int >> &tuple, const bool isLast)
 
void setSharedParameters (const std::tuple< std::shared_ptr< float * >, std::shared_ptr< bool >, std::shared_ptr< unsigned long long >> &tuple)
 
- Public Member Functions inherited from op::Renderer
 Renderer (const float renderThreshold, const float alphaKeypoint, const float alphaHeatMap, const bool blendOriginalFrame=true, const unsigned int elementToRender=0u, const unsigned int numberElementsToRender=0u)
 
virtual ~Renderer ()
 
void increaseElementToRender (const int increment)
 
void setElementToRender (const int elementToRender)
 
void setElementToRender (const ElementToRender elementToRender)
 
bool getBlendOriginalFrame () const
 
void setBlendOriginalFrame (const bool blendOriginalFrame)
 
float getAlphaKeypoint () const
 
void setAlphaKeypoint (const float alphaKeypoint)
 
float getAlphaHeatMap () const
 
void setAlphaHeatMap (const float alphaHeatMap)
 
bool getShowGooglyEyes () const
 
void setShowGooglyEyes (const bool showGooglyEyes)
 

Protected Member Functions

void cpuToGpuMemoryIfNotCopiedYet (const float *const cpuMemory, const unsigned long long memoryVolume)
 
void gpuToCpuMemoryIfLastRenderer (float *cpuMemory, const unsigned long long memoryVolume)
 

Protected Attributes

std::shared_ptr< float * > spGpuMemory
 
- Protected Attributes inherited from op::Renderer
const float mRenderThreshold
 
std::atomic< bool > mBlendOriginalFrame
 
std::shared_ptr< std::atomic< unsigned int > > spElementToRender
 
std::shared_ptr< const unsigned int > spNumberElementsToRender
 
std::atomic< bool > mShowGooglyEyes
 

Detailed Description

Definition at line 11 of file gpuRenderer.hpp.

Constructor & Destructor Documentation

◆ GpuRenderer()

op::GpuRenderer::GpuRenderer ( const float  renderThreshold,
const float  alphaKeypoint,
const float  alphaHeatMap,
const bool  blendOriginalFrame = true,
const unsigned int  elementToRender = 0u,
const unsigned int  numberElementsToRender = 0u 
)
explicit

◆ ~GpuRenderer()

virtual op::GpuRenderer::~GpuRenderer ( )
virtual

Member Function Documentation

◆ cpuToGpuMemoryIfNotCopiedYet()

void op::GpuRenderer::cpuToGpuMemoryIfNotCopiedYet ( const float *const  cpuMemory,
const unsigned long long  memoryVolume 
)
protected

◆ getSharedParameters()

std::tuple<std::shared_ptr<float*>, std::shared_ptr<bool>, std::shared_ptr<std::atomic<unsigned int> >, std::shared_ptr<unsigned long long>, std::shared_ptr<const unsigned int> > op::GpuRenderer::getSharedParameters ( )

◆ gpuToCpuMemoryIfLastRenderer()

void op::GpuRenderer::gpuToCpuMemoryIfLastRenderer ( float *  cpuMemory,
const unsigned long long  memoryVolume 
)
protected

◆ setSharedParameters()

void op::GpuRenderer::setSharedParameters ( const std::tuple< std::shared_ptr< float * >, std::shared_ptr< bool >, std::shared_ptr< unsigned long long >> &  tuple)

◆ setSharedParametersAndIfLast()

void op::GpuRenderer::setSharedParametersAndIfLast ( const std::tuple< std::shared_ptr< float * >, std::shared_ptr< bool >, std::shared_ptr< std::atomic< unsigned int >>, std::shared_ptr< unsigned long long >, std::shared_ptr< const unsigned int >> &  tuple,
const bool  isLast 
)

Member Data Documentation

◆ spGpuMemory

std::shared_ptr<float*> op::GpuRenderer::spGpuMemory
protected

Definition at line 35 of file gpuRenderer.hpp.


The documentation for this class was generated from the following file: