OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
renderer.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_CORE_RENDERER_HPP
2 #define OPENPOSE_CORE_RENDERER_HPP
3 
4 #include <atomic>
7 
8 namespace op
9 {
11  {
12  public:
13  explicit Renderer(const float renderThreshold, const float alphaKeypoint, const float alphaHeatMap,
14  const bool blendOriginalFrame = true, const unsigned int elementToRender = 0u,
15  const unsigned int numberElementsToRender = 0u);
16 
17  virtual ~Renderer();
18 
19  void increaseElementToRender(const int increment);
20 
21  void setElementToRender(const int elementToRender);
22 
23  void setElementToRender(const ElementToRender elementToRender);
24 
25  bool getBlendOriginalFrame() const;
26 
27  void setBlendOriginalFrame(const bool blendOriginalFrame);
28 
29  float getAlphaKeypoint() const;
30 
31  void setAlphaKeypoint(const float alphaKeypoint);
32 
33  float getAlphaHeatMap() const;
34 
35  void setAlphaHeatMap(const float alphaHeatMap);
36 
37  bool getShowGooglyEyes() const;
38 
39  void setShowGooglyEyes(const bool showGooglyEyes);
40 
41  protected:
42  const float mRenderThreshold;
43  std::atomic<bool> mBlendOriginalFrame;
44  std::shared_ptr<std::atomic<unsigned int>> spElementToRender;
45  std::shared_ptr<const unsigned int> spNumberElementsToRender;
46  std::atomic<bool> mShowGooglyEyes;
47 
48  private:
49  float mAlphaKeypoint;
50  float mAlphaHeatMap;
51 
53  };
54 }
55 
56 #endif // OPENPOSE_CORE_RENDERER_HPP
Renderer(const float renderThreshold, const float alphaKeypoint, const float alphaHeatMap, const bool blendOriginalFrame=true, const unsigned int elementToRender=0u, const unsigned int numberElementsToRender=0u)
void setAlphaKeypoint(const float alphaKeypoint)
void increaseElementToRender(const int increment)
float getAlphaKeypoint() const
std::shared_ptr< const unsigned int > spNumberElementsToRender
Definition: renderer.hpp:45
bool getShowGooglyEyes() const
std::atomic< bool > mBlendOriginalFrame
Definition: renderer.hpp:43
void setElementToRender(const ElementToRender elementToRender)
void setBlendOriginalFrame(const bool blendOriginalFrame)
void setShowGooglyEyes(const bool showGooglyEyes)
float getAlphaHeatMap() const
void setAlphaHeatMap(const float alphaHeatMap)
virtual ~Renderer()
std::shared_ptr< std::atomic< unsigned int > > spElementToRender
Definition: renderer.hpp:44
std::atomic< bool > mShowGooglyEyes
Definition: renderer.hpp:46
bool getBlendOriginalFrame() const
const float mRenderThreshold
Definition: renderer.hpp:42
void setElementToRender(const int elementToRender)
#define OP_API
Definition: macros.hpp:18
#define DELETE_COPY(className)
Definition: macros.hpp:32
ElementToRender
Definition: enumClasses.hpp:35