OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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>
6 
7 namespace op
8 {
10  {
11  public:
12  explicit Renderer(const float renderThreshold, const float alphaKeypoint, const float alphaHeatMap,
13  const bool blendOriginalFrame = true, const unsigned int elementToRender = 0u,
14  const unsigned int numberElementsToRender = 0u);
15 
16  void increaseElementToRender(const int increment);
17 
18  void setElementToRender(const int elementToRender);
19 
20  bool getBlendOriginalFrame() const;
21 
22  void setBlendOriginalFrame(const bool blendOriginalFrame);
23 
24  float getAlphaKeypoint() const;
25 
26  void setAlphaKeypoint(const float alphaKeypoint);
27 
28  float getAlphaHeatMap() const;
29 
30  void setAlphaHeatMap(const float alphaHeatMap);
31 
32  bool getShowGooglyEyes() const;
33 
34  void setShowGooglyEyes(const bool showGooglyEyes);
35 
36  protected:
37  const float mRenderThreshold;
38  std::atomic<bool> mBlendOriginalFrame;
39  std::shared_ptr<std::atomic<unsigned int>> spElementToRender;
40  std::shared_ptr<const unsigned int> spNumberElementsToRender;
41  std::atomic<bool> mShowGooglyEyes;
42 
43  private:
44  float mAlphaKeypoint;
45  float mAlphaHeatMap;
46 
48  };
49 }
50 
51 #endif // OPENPOSE_CORE_RENDERER_HPP
#define DELETE_COPY(className)
Definition: macros.hpp:30
std::atomic< bool > mBlendOriginalFrame
Definition: renderer.hpp:38
std::atomic< bool > mShowGooglyEyes
Definition: renderer.hpp:41
std::shared_ptr< const unsigned int > spNumberElementsToRender
Definition: renderer.hpp:40
std::shared_ptr< std::atomic< unsigned int > > spElementToRender
Definition: renderer.hpp:39
#define OP_API
Definition: macros.hpp:15
Definition: renderer.hpp:9
const float mRenderThreshold
Definition: renderer.hpp:37