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
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>
5 #include <openpose/core/common.hpp>
6 #include <openpose/core/enumClasses.hpp>
7
8 namespace op
9 {
10 class OP_API Renderer
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
52 DELETE_COPY(Renderer);
53 };
54 }
55
56 #endif // OPENPOSE_CORE_RENDERER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
op::Renderer::mBlendOriginalFrame
std::atomic< bool > mBlendOriginalFrame
Definition: renderer.hpp:43
op::ElementToRender
ElementToRender
Definition: enumClasses.hpp:31
common.hpp
op::Renderer::mShowGooglyEyes
std::atomic< bool > mShowGooglyEyes
Definition: renderer.hpp:46
op::Renderer::spNumberElementsToRender
std::shared_ptr< const unsigned int > spNumberElementsToRender
Definition: renderer.hpp:45
op::Renderer::spElementToRender
std::shared_ptr< std::atomic< unsigned int > > spElementToRender
Definition: renderer.hpp:44
OP_API
#define OP_API
Definition: macros.hpp:19
enumClasses.hpp
op::Renderer
Definition: renderer.hpp:10
op::Renderer::mRenderThreshold
const float mRenderThreshold
Definition: renderer.hpp:42